/* Split Screen Authentication Design */
.auth-container {
    min-height: 100vh;
    display: flex;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    width: 100%;
}

.auth-left {
    flex: 1;
    
    background: url('/images/5meeting-001.jpg') center/cover no-repeat;


     
    position: relative;
    min-height: 100vh;
}

/* Removed dark overlay for cleaner background */

.auth-right {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 100vh;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
    padding: 0 1rem;
}

.auth-logo-container {
    text-align: left;
    margin-bottom: 3rem;
}

.auth-logo-container img {
    height: 120px !important;
    width: auto !important;
    max-width: 400px !important;
}

.auth-title {
    font-size: 2.25rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-family: 'Georgia', serif;
}

.auth-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    font-weight: 400;
}

.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.auth-form-control:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: none;
}

.auth-form-control::placeholder {
    color: #9ca3af;
}

/* iOS Safari specific fixes */
.auth-form-control,
.auth-select {
    -webkit-tap-highlight-color: transparent;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    -webkit-user-select: auto;
    user-select: auto;
}

.auth-password-group {
    position: relative;
    width: 100%;
}

.auth-password-group .auth-form-control {
    padding-right: 2.5rem;
}

.auth-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
}

.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.auth-remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.auth-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-btn-primary {
    width: 100%;
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.auth-btn-primary:hover {
    background: #333;
}

.auth-bottom-link {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.auth-bottom-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-bottom-link a:hover {
    text-decoration: underline;
}

.auth-invalid-feedback {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.auth-alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.auth-alert-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.auth-alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* reCAPTCHA styling */
.g-recaptcha {
    margin-bottom: 1.5rem;
}

/* Demo mode select styling */
.auth-demo-select {
    margin-bottom: 1.5rem;
}

.auth-demo-select select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0.75rem 1.25rem;
        padding-top: 58px; /* Space for mobile logo */
        padding-bottom: 70px; /* Space for mobile nav */
    }

    .auth-form-container {
        max-width: 100%;
        padding: 0;
        margin-top: -35px; /* Pull content very close to logo */
    }

    .auth-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0.75rem;
        margin-top: 0;
        padding-top: 0;
    }

    .auth-subtitle {
        text-align: center;
        margin-bottom: 0.75rem;
        font-size: 0.85rem;
    }

    .auth-logo-container {
        display: none !important;
    }

    /* Stack form rows vertically on mobile */
    .auth-form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Improve form spacing on mobile */
    .auth-form-group {
        margin-bottom: 0.65rem;
    }

    .auth-form-label {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
        font-weight: 600;
    }

    .auth-form-control {
        padding: 0.6rem 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .auth-btn-primary {
        padding: 0.7rem;
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        margin-top: 0.25rem;
    }

    .auth-bottom-link {
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }

    .auth-remember-me {
        font-size: 0.8rem;
    }

    .auth-remember-me span {
        line-height: 1.3;
    }

    /* reCAPTCHA mobile adjustments */
    .g-recaptcha {
        transform: scale(0.92);
        transform-origin: 0 0;
        margin-bottom: 0.5rem;
    }
}

/* Extra small devices (iPhone SE, iPhone 12 mini, etc.) */
@media (max-width: 480px) {
    .auth-right {
        padding: 0.5rem 1rem;
        padding-top: 50px;
        padding-bottom: 65px;
    }

    .auth-form-container {
        margin-top: -95px; /* Pull content almost to logo on small screens */
    }

    .auth-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        margin-top: 0;
        padding-top: 0;
    }

    .auth-subtitle {
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }

    .auth-form-group {
        margin-bottom: 0.5rem;
    }

    .auth-form-label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .auth-form-control,
    .auth-select {
        padding: 0.55rem 0.65rem;
        font-size: 16px;
    }

    .auth-btn-primary {
        padding: 0.65rem;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        margin-bottom: 0.25rem;
    }

    .auth-remember-me {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .auth-remember-me input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }

    .auth-bottom-link {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .auth-invalid-feedback {
        font-size: 0.75rem;
    }
}

/* Additional form elements */
.auth-form-row {
    display: flex;
    gap: 1rem;
}

.auth-form-row .auth-form-group {
    flex: 1;
}

/* Select styling */
.auth-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #ffffff;
    font-family: inherit;
}

.auth-select:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: none;
}

/* Textarea styling */
.auth-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #ffffff;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.auth-textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: none;
}

/* Custom JavaScript for auth password toggle */
.auth-password-toggle:hover {
    color: #1a1a1a;
}
