/* Modern Authentication Styles */

/* Auth Page Layout */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
}

.auth-header {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
}

.auth-header .logo {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.auth-header .logo-subtitle {
    font-size: 0.6rem;
    opacity: 0.8;
    font-weight: normal;
}


.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0; /* 100px top and bottom as requested */
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: none; /* Remove max-width constraint */
    width: 100%;
    align-items: start;
}

/* Auth Card */
.auth-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header-content {
    text-align: center;
    margin-bottom: 30px; /* Reduced from 40px */
}

.auth-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header-content p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Modern Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Further reduced from 16px */
}

/* Compact form for signup page */
body:has(.medical-disclaimer) .auth-form {
    gap: 10px; /* Even more compact for signup */
}

body:has(.medical-disclaimer) .form-input {
    padding: 8px 14px; /* Further reduced padding for signup */
}

body:has(.medical-disclaimer) .auth-header-content {
    margin-bottom: 16px; /* Further reduced from 20px */
}

body:has(.medical-disclaimer) .auth-card {
    padding: 24px; /* Further reduced from 30px for signup */
}

body:has(.medical-disclaimer) .form-group {
    margin-bottom: 0; /* Remove any extra margin */
}

body:has(.medical-disclaimer) .form-label {
    margin-bottom: 4px; /* Further reduced from 6px */
}

body:has(.medical-disclaimer) .password-strength {
    margin-top: 4px; /* Further reduced from 6px */
}

body:has(.medical-disclaimer) .terms-checkbox {
    margin: 12px 0; /* Further reduced from 16px */
    padding: 10px; /* Further reduced from 12px */
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.label-icon {
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px; /* Reduced from 16px 20px */
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-input:valid {
    border-color: #27ae60;
    background: #f8fff9;
}

.form-input.error {
    border-color: #e74c3c;
    background: #fff8f8;
    animation: shake 0.5s ease-in-out;
}

.form-hint {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
}

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

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.3s;
    padding: 4px;
    border-radius: 4px;
}

.password-toggle:hover {
    opacity: 1;
    background: rgba(102, 126, 234, 0.1);
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #e74c3c;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 25%;
    background: #e74c3c;
}

.strength-fill.fair {
    width: 50%;
    background: #f39c12;
}

.strength-fill.good {
    width: 75%;
    background: #f1c40f;
}

.strength-fill.strong {
    width: 100%;
    background: #27ae60;
}

.strength-text {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-checkbox {
    width: 18px !important;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background-color: white;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

.custom-checkbox:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.custom-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.custom-checkbox:hover {
    border-color: #667eea;
    background-color: #f8f9fa;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: block;
    text-align: center;
    line-height: 1;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Terms Checkbox */
.terms-checkbox {
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.terms-checkbox .checkbox-label {
    line-height: 1.5;
}

.terms-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

/* Modern Buttons */
.btn-full {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.auth-footer p {
    color: #6c757d;
    margin: 0;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Features Section */
.auth-features {
    color: white;
    padding: 40px 0;
}

.auth-features h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-item p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Medical Disclaimer */
.medical-disclaimer {
    padding: 80px 0 0;
    margin-top: auto;
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.disclaimer-content-centered {
    max-width: none; /* Remove max-width since container already constrains it */
    margin: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border-left: 4px solid #f39c12;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.disclaimer-content-centered p {
    margin: 0;
    color: #856404;
    line-height: 1.6;
    font-size: 0.95rem;
}

.disclaimer-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.disclaimer-content p {
    margin: 0;
    color: #856404;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

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

.auth-card {
    animation: fadeInUp 0.6s ease-out;
}

.auth-features {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 600px;
    }
    
    .auth-features {
        order: -1;
        padding: 20px 0;
    }
    
    .feature-list {
        gap: 16px;
    }
    
    .feature-item {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .auth-main {
        padding: 20px;
    }
    
    .auth-card {
        padding: 30px 24px;
        border-radius: 20px;
    }
    
    .auth-header-content h1 {
        font-size: 2rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .medical-disclaimer {
        padding: 16px 0;
    }
    
    .disclaimer-content {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .auth-header-content h1 {
        font-size: 1.8rem;
    }
    
    .auth-card {
        padding: 24px 20px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
}