/* Auth pages styling */
.form-container {
    animation: slideUp 0.5s ease-out;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    transition: all 0.3s ease;
}

.dark .form-input {
    border-color: #374151;
    background-color: #1f2937;
    color: #fff;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background-color: white;
}

.dark .form-input:focus {
    border-color: #60a5fa;
    background-color: #374151;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Password toggle button effects */
.password-toggle-btn {
    transition: all 0.2s ease;
}

.password-toggle-btn:hover {
    color: #4b5563;
}

.dark .password-toggle-btn:hover {
    color: #9ca3af;
}

/* Dark mode specific styles */
.dark .error-message {
    color: #f87171;
}

.dark .success-message {
    color: #34d399;
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    padding: 0 0.25rem;
    color: #6b7280;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    background-color: white;
    color: #3b82f6;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.btn-primary .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.btn-primary.loading .spinner {
    display: block;
}

.btn-primary.loading span {
    opacity: 0;
}

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

.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

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

.animate-fade-in {
    animation: fade-in 0.3s ease-out forwards;
}

/* Error states */
input.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    animation: fade-in 0.3s ease-out forwards;
}

/* Success states */
.success-message {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    animation: fade-in 0.3s ease-out forwards;
}
