
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    background: #f8f9fa;
    padding-top: 2rem;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    border: 1px solid #e9ecef;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: #343a40;
    margin: 0;
}

.brand-tagline {
    color: #6c757d;
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}

.auth-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-top: 2rem;
    position: relative;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.auth-tab.active {
    background: white;
    color: #0d6efd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-tab i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.auth-body {
    position: relative;
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-form.active {
    display: block;
}

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

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

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

.input-icon {
    position: absolute;
    left: 15px;
    color: #9ca3af;
    z-index: 3;
    font-size: 0.9rem;
}

.auth-form .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 20px 14px 45px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.auth-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    background: white;
}

.password-toggle {
    position: absolute;
    right: 15px;
    color: #9ca3af;
    cursor: pointer;
    z-index: 3;
    transition: color 0.3s ease;
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
    accent-color: #0d6efd;
}

.forgot-password {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #0b5ed7;
}

.btn-auth {
    width: 100%;
    background: #0d6efd;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    background: #0b5ed7;
}

.btn-text {
    margin-right: 8px;
}

.form-hint {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

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

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

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

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

.password-match {
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 1.2rem;
}

.terms-link {
    color: #0d6efd;
    text-decoration: none;
}

.terms-link:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

.auth-container .alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 1.5rem;
}

.auth-container .alert-danger {
    background: #dc3545;
    color: white;
}

.auth-container .alert-success {
    background: #198754;
    color: white;
}

[data-bs-theme="dark"] .auth-container {
    background: #181d25;
}

[data-bs-theme="dark"] .auth-card {
    background: #222934;
    border-color: #333d4c;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .brand-name {
    color: #eef1f6;
}

[data-bs-theme="dark"] .brand-tagline {
    color: #9ca3af;
}

[data-bs-theme="dark"] .auth-tabs {
    background: #333d4c;
}

[data-bs-theme="dark"] .auth-tab {
    color: #9ca3af;
}

[data-bs-theme="dark"] .auth-tab.active {
    background: #222934;
    color: #f997a3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .input-icon {
    color: #6c727f;
}

[data-bs-theme="dark"] .auth-form .form-control {
    background: #333d4c;
    border-color: #6c727f;
    color: #cad0d9;
}

[data-bs-theme="dark"] .auth-form .form-control:focus {
    background: #333d4c;
    border-color: #f997a3;
    box-shadow: 0 0 0 3px rgba(249, 151, 163, 0.1);
}

[data-bs-theme="dark"] .auth-form .form-control::placeholder {
    color: #6c727f;
}

[data-bs-theme="dark"] .password-toggle {
    color: #6c727f;
}

[data-bs-theme="dark"] .password-toggle:hover {
    color: #f997a3;
}

[data-bs-theme="dark"] .form-check-label {
    color: #cad0d9;
}

[data-bs-theme="dark"] .form-hint {
    color: #9ca3af;
}

[data-bs-theme="dark"] .forgot-password {
    color: #f997a3;
}

[data-bs-theme="dark"] .forgot-password:hover {
    color: #f55266;
}

[data-bs-theme="dark"] .btn-auth {
    background: #f55266;
}

[data-bs-theme="dark"] .btn-auth:hover {
    background: #f2223b;
}

[data-bs-theme="dark"] .strength-bar {
    background: #6c727f;
}

[data-bs-theme="dark"] .strength-text {
    color: #9ca3af;
}

[data-bs-theme="dark"] .password-match {
    color: #9ca3af;
}

[data-bs-theme="dark"] .terms-link {
    color: #f997a3;
}

[data-bs-theme="dark"] .terms-link:hover {
    color: #f55266;
}

[data-bs-theme="dark"] .auth-container .alert-danger {
    background: #f03d3d;
    color: white;
}

[data-bs-theme="dark"] .auth-container .alert-success {
    background: #33b36b;
    color: white;
}

[data-bs-theme="dark"] .auth-form .form-control.is-valid {
    border-color: #33b36b;
    box-shadow: 0 0 0 3px rgba(51, 179, 107, 0.1);
}

[data-bs-theme="dark"] .auth-form .form-control.is-invalid {
    border-color: #f03d3d;
    box-shadow: 0 0 0 3px rgba(240, 61, 61, 0.1);
}

[data-bs-theme="dark"] .invalid-feedback {
    color: #f03d3d;
}

@media (max-width: 768px) {
    .auth-card {
        margin: 1rem;
        padding: 2rem;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .auth-tabs {
        margin-top: 1.5rem;
    }
}