/* Register Page Specific Styles */

/* Register page body styles */
body.register-page {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
}

.register-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height, 80px);
}

.register-main-content {
    flex-grow: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0.5rem;
}

/* Main container with thin border only */
.register-container {
    display: flex;
    width: 100%;
    flex-grow: 1;
    background-color: var(--bg-primary);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(139, 140, 137, 0.15);
}

/* Left side - Register form (65%) */
.register-left-side {
    width: 65%;
    flex: 0 0 65%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-primary);
    gap: 5rem;
}

.register-form-content {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

/* Logo section */
.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-section img {
    max-width: 140px;
    height: auto;
}

/* Form header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.start-journey {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.form-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0;
    font-weight: 600;
}

/* User type selection */
.user-type-selection {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border: none;
    padding: 0;
}

.user-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    min-width: 120px;
}

.user-type-option i {
    font-size: 3rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.user-type-option input[type="radio"]:checked ~ i {
    color: var(--accent);
    transform: none;
}

/* Hover effects for user type options */
.user-type-option:hover i {
    color: var(--accent);
    transform: none;
}

.user-type-option:hover label.btn {
    border-color: var(--accent);
    color: var(--accent);
    background-color: var(--bg-tertiary);
}

/* Special hover effect for disabled admin option */
.user-type-option:has(input[disabled]) {
    opacity: 0.6;
    cursor: not-allowed;
}

.user-type-option:has(input[disabled]):hover i {
    color: var(--text-secondary);
    transform: none;
}

.user-type-option:has(input[disabled]):hover label.btn {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.user-type-option label.btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    border-width: 1px;
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.user-type-option input[type="radio"]:checked + label.btn {
    background-color: var(--accent);
    color: var(--secondary);
    border-color: var(--accent);
    transform: none;
}

.user-type-option input[type="radio"] + label.btn:hover {
    background-color: var(--bg-secondary);
    border-color: var(--placeholder-text);
    transform: none;
}

.user-type-option input[type="radio"]:checked + label.btn:hover {
    background-color: var(--primary);
    transform: none;
}

/* Form styling */
.form-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

.form-control {
    font-size: 0.9rem;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--bg-primary);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: var(--placeholder-text);
    opacity: 1;
}

/* Password input */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .btn-toggle-password {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    z-index: 10;
}

.password-input-wrapper .btn-toggle-password:hover {
    color: var(--accent);
}

/* Submit button */
.btn-submit-custom {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--accent);
    color: var(--secondary);
    border: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-submit-custom:hover {
    background-color: var(--primary);
}

.btn-submit-custom:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Login prompt */
.login-prompt {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.login-prompt a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Right side - User type explanations (35%) */
.register-right-side {
    width: 35%;
    flex: 0 0 35%;
    background:  url('../assets/register1.png'),linear-gradient(135deg, var(--accent) 10%, var(--accent) 100%);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.user-type-explanations {
    width: 100%;
    max-width: 320px;
}

.explanation-section {
    display: none;
    text-align: center;
    color: var(--secondary);
    animation: fadeInUp 0.5s ease-out;
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.explanation-section.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: none;
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.explanation-icon {
    margin-bottom: 1.5rem;
}

.explanation-icon i {
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.explanation-section h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.explanation-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.feature-list li i {
    color: var(--accent);
    margin-right: 0.75rem;
    font-size: 0.8rem;
    background: var(--bg-primary);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Validation styles */
.form-control.is-valid {
    border-color: var(--accent);
    background-image: none !important;
    padding-right: 0.875rem !important;
}

.form-control.is-invalid {
    border-color: var(--primary);
    background-image: none !important;
    padding-right: 0.875rem !important;
}

.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: var(--primary);
}

.valid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: var(--accent);
}

/* Custom validation feedback styling */
.password-match-feedback,
.email-format-feedback,
.password-length-feedback,
.fullname-security-feedback {
    font-size: 0.875rem;
    color: var(--primary);
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    animation: fadeIn 0.3s ease-in-out;
}

/* Security-specific feedback styling */
.fullname-security-feedback {
    background-color: var(--bg-primary)3cd;
    border-color: var(--accent);
    color: var(--accent);
}

@keyframes fadeIn {
    from { opacity: 0; transform: none; }
    to { opacity: 1; transform: translateY(0); }
}

/* Hide password toggle when validation is active */
.password-input-wrapper .form-control.is-valid ~ .btn-toggle-password,
.password-input-wrapper .form-control.is-invalid ~ .btn-toggle-password {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .register-main-content {
        padding: 1rem;
    }

    .register-container {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }

    .register-left-side {
        width: 100%;
        flex: 1 0 auto;
        padding: 2rem;
    }

    .register-right-side {
        display: none; /* Hide image/explanations on mobile */
    }

    .form-header h3 {
        font-size: 1.375rem;
    }

    .user-type-selection {
        gap: 1rem;
    }

    .user-type-option {
        min-width: 100px;
    }

    .user-type-option i {
        font-size: 2.5rem;
    }

    .user-type-option label.btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .register-left-side {
        padding: 1.5rem;
    }

    .user-type-selection {
        gap: 0.5rem;
    }

    .user-type-option {
        min-width: 80px;
    }

    .user-type-option i {
        font-size: 2rem;
    }

    .user-type-option label.btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}