/* Shared Authentication Styles */

/* Auth Page Styles */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    gap: 3rem;
    align-items: center;
}

.auth-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 3rem;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

/* Header Styles */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    margin-bottom: 1.5rem;
}

.logo-image {
    height: 60px;
    max-width: 200px;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #40948C;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.auth-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Form Styles */
.auth-form {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-size: 1.25rem;
    z-index: 2;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    background-color: #fafafa;
    color: #374151;
}

.form-input:focus {
    outline: none;
    border-color: #40948C;
    box-shadow: 0 0 0 3px rgba(64, 148, 140, 0.1);
    background-color: white;
}

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

/* Password Toggle Button */
.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.password-toggle-btn:hover {
    background-color: #f3f4f6;
    color: #40948C;
}

.password-toggle-btn:focus {
    outline: 2px solid #40948C;
    outline-offset: 2px;
}

.password-toggle-btn .mdi {
    font-size: 1.125rem;
}

/* Adjust input padding for password fields */
.input-wrapper:has(.password-toggle-btn) .form-input {
    padding-right: 3rem;
}

.validation-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Password Strength Indicator */
.password-strength-container {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.password-strength-bar {
    width: 100%;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-veryweak .strength-bar-fill,
.strength-bar-fill.strength-veryweak {
    width: 20%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.strength-weak .strength-bar-fill,
.strength-bar-fill.strength-weak {
    width: 40%;
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.strength-fair .strength-bar-fill,
.strength-bar-fill.strength-fair {
    width: 60%;
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.strength-good .strength-bar-fill,
.strength-bar-fill.strength-good {
    width: 80%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.strength-strong .strength-bar-fill,
.strength-bar-fill.strength-strong {
    width: 100%;
    background: linear-gradient(135deg, #40948C, #2d6a5f);
}

.password-strength-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.strength-text {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

.strength-text.strength-veryweak {
    color: #dc2626;
}

.strength-text.strength-weak {
    color: #ea580c;
}

.strength-text.strength-fair {
    color: #ca8a04;
}

.strength-text.strength-good {
    color: #16a34a;
}

.strength-text.strength-strong {
    color: #2d6a5f;
}

.strength-score {
    font-weight: 600;
    color: #6b7280;
}

/* Password Requirements */
.password-requirements {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.requirement.met {
    color: #16a34a;
}

.requirement.unmet {
    color: #6b7280;
}

.requirement .mdi {
    font-size: 1rem;
}

.requirement.met .mdi {
    color: #16a34a;
}

.requirement.unmet .mdi {
    color: #9ca3af;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: white;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: #40948C;
    border-color: #40948C;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.remember-text {
    font-weight: 500;
}

.forgot-password-link {
    color: #40948C;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #2d6a5f;
    text-decoration: underline;
}

/* Button Styles */
.auth-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #40948C 0%, #2d6a5f 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(64, 148, 140, 0.4);
}

.auth-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    margin: 0.5rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.auth-link {
    color: #40948C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #2d6a5f;
    text-decoration: underline;
}

/* Features Panel */
.auth-features {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    color: #374151;
    display: flex;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.features-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #40948C;
    margin-bottom: 2rem;
    text-align: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2rem;
    color: #40948C;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .auth-features {
        order: -1;
        padding: 2rem;
    }
    
    .features-content h2 {
        font-size: 1.75rem;
    }
    
    .feature-list {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .auth-subtitle {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .auth-features {
        padding: 1.5rem;
    }
    
    .features-content h2 {
        font-size: 1.5rem;
    }
    
    .feature-item {
        gap: 0.75rem;
    }
    
    .feature-item i {
        font-size: 1.5rem;
    }
    
    .feature-item h3 {
        font-size: 1.125rem;
    }
    
    .feature-item p {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .auth-subtitle {
        font-size: 0.875rem;
    }
    
    .auth-features {
        padding: 1rem;
    }
    
    .features-content h2 {
        font-size: 1.25rem;
    }
} 