/* Auth Container Styles */
.auth-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-warning i {
    color: #f39c12;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-success i {
    color: #28a745;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-error i {
    color: #dc3545;
}

/* Auth Nav */
.auth-nav {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
}

.auth-nav-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #666666;
    transition: all 0.3s ease;
}

.auth-nav-btn.active {
    color: #E74C3C;
    border-bottom: 2px solid #E74C3C;
}

.auth-forms {
    position: relative;
    padding: 30px;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.auth-forms.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.auth-forms.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Auth Form Container */
.auth-form-container {
    padding: 20px;
    display: none; /* Default - will be shown via JS */
}

.auth-header {
    margin-bottom: 24px;
    text-align: center;
}

.auth-header h3 {
    font-size: 1.5rem;
    color: #0F3057;
    margin-bottom: 8px;
}

.auth-header p {
    color: #666666;
    font-size: 0.9rem;
}

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333333;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #666666;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #3498DB;
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #666666;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    margin-right: 8px;
}

.link-small {
    font-size: 13px;
    color: #3498DB;
    text-decoration: none;
}

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

.btn-block {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
}

.form-separator {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.form-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e5e5;
}

.form-separator span {
    position: relative;
    background: #fff;
    padding: 0 10px;
    color: #666666;
    font-size: 14px;
}

.social-login {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-google {
    color: #333;
}

.btn-google:hover {
    background-color: #f8f8f8;
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.password-strength {
    margin-top: 10px;
}

.strength-meter {
    height: 4px;
    background-color: #e5e5e5;
    margin-bottom: 10px;
    border-radius: 2px;
    overflow: hidden;
}

.strength-meter-fill {
    height: 100%;
    width: 0;
    background-color: #e74c3c; /* Default to red/weak */
    transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.strength-meter-fill[data-strength="1"] { width: 20%; background-color: #e74c3c; }
.strength-meter-fill[data-strength="2"] { width: 40%; background-color: #e67e22; }
.strength-meter-fill[data-strength="3"] { width: 60%; background-color: #f1c40f; }
.strength-meter-fill[data-strength="4"] { width: 80%; background-color: #2ecc71; }
.strength-meter-fill[data-strength="5"] { width: 100%; background-color: #27ae60; }

.password-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
}

.password-requirements .req {
    color: #666;
}

.password-requirements .req i {
    margin-right: 4px;
}

.password-requirements .req.met {
    color: #2ecc71;
}

.terms-checkbox {
    margin-top: 10px;
}

.terms-checkbox label {
    font-size: 14px;
    display: inline;
    margin-left: 8px;
}

.terms-checkbox a {
    color: #3498DB;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.form-actions {
    margin-top: 20px;
    font-size: 14px;
}

.form-actions a {
    color: #3498DB;
    text-decoration: none;
}

.form-actions a:hover {
    text-decoration: underline;
}

.mt-3 {
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
        border-radius: 0;
        margin: 0 10px;
    }
    
    .auth-nav-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .auth-form-container {
        padding: 16px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .auth-container {
        margin: 0 5px;
        box-shadow: none;
        border: 1px solid #e5e5e5;
    }
    
    .auth-nav-btn {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .auth-form-container {
        padding: 12px;
    }
    
    .auth-header h3 {
        font-size: 1.3rem;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .input-group input {
        padding: 12px 40px 12px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-block {
        padding: 14px;
        font-size: 1rem;
    }
    
    .social-login .btn {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    max-width: 350px;
    animation: slideInRight 0.3s ease forwards;
}

.notification i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.notification.success {
    background-color: #2ecc71;
}

.notification.error {
    background-color: #f44336;
}

.notification.info {
    background-color: #3498db;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.dashboard-header h2 {
    margin: 0;
    color: #333;
}

.dashboard-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.dashboard-tab.active {
    color: #2196F3;
    border-bottom-color: #2196F3;
}

.dashboard-tab-content {
    display: none;
}

.dashboard-tab-content.active {
    display: block;
}

/* Profile Form */
.profile-form,
.password-form {
    max-width: 600px;
}

.password-change-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .auth-container,
    .dashboard-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .dashboard-nav {
        flex-wrap: wrap;
    }

    .dashboard-tab {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* Add styles for password strength if they don't exist already */

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

.strength-meter {
    height: 4px;
    background-color: #e5e5e5;
    margin-bottom: 10px;
    border-radius: 2px;
    overflow: hidden;
}

.strength-meter-fill {
    height: 100%;
    width: 0;
    background-color: #e74c3c; /* Default to red/weak */
    transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* Password Requirements */
.password-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
}

.password-requirements .req {
    color: #666;
}

.password-requirements .req i {
    margin-right: 4px;
}

.password-requirements .req.met {
    color: #2ecc71;
}

/* Valid/Invalid states for inputs */
input.valid {
    border-color: #2ecc71 !important;
}

input.invalid {
    border-color: #e74c3c !important;
}

/* Password Toggle Button */
.toggle-password {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #0F3057;
}

/* Input group positioning for password fields */
.input-group {
    position: relative;
}

.input-group input[type="password"],
.input-group input[type="text"] {
    padding-right: 40px;
}