.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
}

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

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.auth-success-icon [data-icon] {
    color: #10b981;
    font-size: 2rem;
}

.auth-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.btn.btn-primary.btn-full {
    width: 100%;
    justify-content: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.auth-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-form .form-control::placeholder {
    color: var(--text-muted);
}

.auth-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0 1rem;
}

.auth-form .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.auth-form .form-check-input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
}

.auth-form .form-check-label {
    user-select: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.auth-form .form-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

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

.auth-form .error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
}

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

.auth-resend-toggle {
    margin-top: 0.75rem;
    background: transparent;
    border: none;
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    padding: 0;
    line-height: 1.4;
    cursor: pointer;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.auth-card .btn.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
}

.auth-card .btn.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #10b981) !important;
}

.auth-resend-toggle:hover {
    text-decoration: underline;
}

.auth-resend-toggle:focus,
.auth-resend-toggle:focus-visible {
    outline: none;
    box-shadow: none;
}

.auth-resend-form {
    margin-top: 1rem;
}

.resend-fields {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn.btn-outline.btn-resend {
    border-color: #10b981;
    color: #10b981;
}

.btn.btn-outline.btn-resend:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

@media (max-width: 480px) {
    .resend-fields {
        flex-direction: column;
        align-items: stretch;
    }
}

.auth-form .alert {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-form .alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.auth-form .alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-form .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1rem 0.5rem;
    }

    .auth-card {
        padding: 1.25rem;
        border: none;
        box-shadow: none;
    }
}

.password-strength {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.strength-meter {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 0.25rem;
    overflow: hidden;
}

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

.strength-weak {
    background: var(--danger);
}

.strength-medium {
    background: var(--warning);
}

.strength-strong {
    background: var(--success);
}

.requirements-list {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.requirement.valid {
    color: var(--success);
}

.requirement.invalid {
    color: var(--danger);
}

.requirement-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.security-note {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.security-note h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #ef4444;
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

.auth-error .error-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #ef4444;
}

.auth-error .error-text {
    flex: 1;
    color: #991b1b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form .btn-primary {
    background-color: #4f46e5 !important;
    background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    border: none !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

.auth-form .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #6366f1, #818cf8) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.4);
}

.auth-form .btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.auth-form .form-control.is-valid {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.05);
}

.auth-form .form-control.is-valid:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.auth-form .form-control.is-invalid {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.auth-form .form-control.is-invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.auth-form .error-message {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.auth-form .error-item {
    display: block;
    color: #ef4444;
    font-size: 0.85rem;
    animation: slideIn 0.2s ease;
}

.auth-form .success-item {
    display: block;
    color: #10b981;
    font-size: 0.85rem;
    animation: slideIn 0.2s ease;
}

.auth-form .pending-item {
    display: block;
    color: #f59e0b;
    font-size: 0.85rem;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.password-strength-indicator {
    margin-top: 0.5rem;
    height: 4px;
    background: var(--bg-dark);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    width: 0%;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

.password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-bar.strong {
    width: 100%;
    background: #10b981;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #3b82f6;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    animation: none;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #374151;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
}

@media (max-width: 640px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }

    .toast {
        transform: translateX(600px);
    }
}