/* Auth Page Styles */
.auth-container {
    width: 100%;
    min-height: 100vh;
    background: #02081C;
    overflow: hidden;
    position: relative;
    padding-top: 80px; /* Space for global header */
}

/* Old auth-header styles removed - now using global header */

/* Main Content */
.auth-main {
    width: 100%;
    min-height: calc(100vh - 80px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 60px;
}

.auth-content {
    width: 100%;
    max-width: 1400px;
    display: flex;
    gap: 40px;
    align-items: center;
}

/* Auth Sections */
.auth-section {
    flex: 1;
    background: rgba(3, 13, 43, 0.95);
    border-radius: 8px;
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.auth-section.register-section {
    min-height: 500px;
}

.auth-section.login-section {
    padding: 24px 32px;
}

.section-header {
    margin-bottom: 24px;
    text-align: center;
    flex-shrink: 0;
}

.login-section .section-header {
    margin-bottom: 20px;
}

.section-title {
    color: white;
    font-size: 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin: 0;
}

/* Divider */
.auth-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 12px;
    align-self: center;
    margin: 20px 0;
}

.divider-line {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.25);
}

.divider-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    background: #02081C;
    padding: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Type Selection */
.user-type-selection {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.selection-title {
    color: white;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
}

.type-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.type-option {
    position: relative;
}

.type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.type-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #02081C;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.type-card:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.02);
}

.type-option input[type="radio"]:checked + .type-card {
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.type-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.individual-icon {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
}

.agency-icon {
    background: linear-gradient(135deg, #50C878, #228B22);
}

.user-icon,
.building-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 4px;
}

.type-content {
    flex: 1;
}

.type-title {
    color: white;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.type-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.type-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.type-features li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    margin: 4px 0;
    padding-left: 16px;
    position: relative;
}

.type-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00CC00;
    font-weight: bold;
}

/* Form Styles */
.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.register-section .auth-form {
    flex: 1; /* Only stretch in register section */
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: white;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group .forgot-password {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
}

.form-input {
    width: 100%;
    background: #02081C;
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Form Options - REMOVED (checkbox removed from login form)
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: relative;
    background: transparent;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom {
    background: white;
    border-color: white;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #02081C;
    font-size: 12px;
    font-weight: bold;
}
*/

.forgot-password {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: white;
}

/* Buttons */
.register-actions,
.login-actions {
    margin-top: 20px;
}

.btn-register,
.btn-login {
    width: 100%;
    background: white;
    border: none;
    color: #06174D;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    /* Prevent any dropdown or menu behavior */
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn-register:hover,
.btn-login:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Prevent any dropdown arrows or pseudo-elements */
.btn-register::after,
.btn-register::before,
.btn-login::after,
.btn-login::before {
    display: none !important;
    content: none !important;
}

/* Override any Bootstrap dropdown styles that might interfere */
.btn-login.dropdown-toggle::after {
    display: none !important;
}

.btn-register.dropdown-toggle::after {
    display: none !important;
}

.btn-register:disabled {
    background: rgba(255, 255, 255, 0.4);
    color: rgba(6, 23, 77, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.terms-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    margin: 16px 0 0 0;
    text-align: center;
    line-height: 1.4;
}

.terms-link {
    color: white;
    text-decoration: underline;
    transition: color 0.3s;
}

.terms-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Social Login - REMOVED - Using only email/password login */
/*
.social-login {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.social-divider {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.social-divider::before,
.social-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}

.social-divider::before {
    left: 0;
}

.social-divider::after {
    right: 0;
}

.social-divider span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    background: rgba(3, 13, 43, 0.95);
    padding: 0 16px;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    color: white;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.social-icon {
    width: 20px;
    height: 20px;
    border-radius: 2px;
}

.google-icon {
    background: linear-gradient(135deg, #DB4437, #CC2B27);
}

.facebook-icon {
    background: linear-gradient(135deg, #4267B2, #365899);
}
*/

/* Error Messages */
.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #FF0000;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    color: #FF0000;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success Messages */
.success-message {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00AA00;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    color: #00AA00;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Field-level error messages */
.field-error {
    color: #FF0000;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    margin-top: 4px;
    display: block;
}

/* Error state for form inputs */
.form-input.error {
    border-color: #FF0000 !important;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .auth-content {
        max-width: 1000px;
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .auth-main {
        padding-bottom: 80px;
    }
    
    .auth-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .auth-section {
        width: 100%;
        max-width: 600px;
    }
    
    .auth-divider {
        flex-direction: row;
        padding: 15px 0;
        gap: 20px;
        width: 100%;
        max-width: 300px;
    }
    
    .divider-line {
        width: 80px;
        height: 1px;
    }
}

@media (max-width: 768px) {
    .auth-main {
        padding: 20px 15px;
        padding-bottom: 80px;
        min-height: calc(100vh - 80px);
    }
    
    .auth-section {
        padding: 24px 20px;
        min-height: auto;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .type-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
    
    .type-content {
        text-align: left;
    }
    
    .type-title {
        font-size: 16px;
    }
    
    .type-description {
        font-size: 13px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .social-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .auth-divider {
        max-width: 250px;
    }
    
    .divider-line {
        width: 60px;
    }
}