﻿/* CryptoArbitrage.Web/wwwroot/css/auth.css */

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-effect {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Input focus styles */
.input-focus {
    transition: all 0.3s ease;
}

    .input-focus:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

/* Password strength indicator */
.password-strength {
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.password-strength-0 {
    width: 0%;
    background-color: #e5e7eb;
}

.password-strength-1 {
    width: 25%;
    background-color: #ef4444;
}

.password-strength-2 {
    width: 50%;
    background-color: #f59e0b;
}

.password-strength-3 {
    width: 75%;
    background-color: #eab308;
}

.password-strength-4 {
    width: 100%;
    background-color: #10b981;
}

/* OTP input styles */
.otp-input {
    width: 3rem;
    height: 3rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

    .otp-input:focus {
        border-color: #667eea;
        outline: none;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.dark .otp-input {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
}

/* Social login buttons */
.social-login-btn {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

    .social-login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.dark .social-login-btn {
    border-color: #4b5563;
    background-color: #374151;
}

    .dark .social-login-btn:hover {
        background-color: #4b5563;
    }

/* Success animation */
@keyframes success-check {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(45deg);
    }

    100% {
        transform: scale(1) rotate(45deg);
        opacity: 1;
    }
}

.success-check {
    animation: success-check 0.5s ease-out forwards;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Form transitions */
.form-transition-enter {
    opacity: 0;
    transform: translateX(20px);
}

.form-transition-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.form-transition-leave {
    opacity: 1;
    transform: translateX(0);
}

.form-transition-leave-active {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}
