
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* Enhanced Glass Effect */
.glass-effect {
    backdrop-filter: blur(25px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

/* Improved Gradient Overlay */
.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* Premium Input Focus */
.input-focus {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-focus:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 0 0 3px rgba(102, 126, 234, 0.1),
        0 10px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Enhanced Animations */
.login-animation {
    animation: slideInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Improved Floating Elements */
.floating-elements::before,
.floating-elements::after,
.floating-elements {
    position: relative;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.floating-elements::before {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 70%);
    animation-delay: 0s;
}

.floating-elements::after {
    width: 180px;
    height: 180px;
    bottom: 10%;
    right: 5%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 70%);
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(2deg);
    }

    66% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

/* Additional Floating Orbs */
.orb-1,
.orb-2,
.orb-3 {
    position: absolute;
    border-radius: 50%;
    animation: floatOrbs 10s ease-in-out infinite;
    z-index: 0;
}

.orb-1 {
    width: 60px;
    height: 60px;
    top: 25%;
    right: 15%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation-delay: 1s;
}

.orb-2 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 12%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation-delay: 3s;
}

.orb-3 {
    width: 45px;
    height: 45px;
    top: 40%;
    left: 25%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    animation-delay: 6s;
}

@keyframes floatOrbs {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.7;
    }

    25% {
        transform: translateY(-15px) translateX(10px);
        opacity: 1;
    }

    50% {
        transform: translateY(-25px) translateX(-5px);
        opacity: 0.8;
    }

    75% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.9;
    }
}

/* Enhanced Button Styles with softer text color */
.btn-primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #4a5568;
    /* Softer gray instead of harsh black */
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #2d3748;
    /* Slightly darker on hover but still soft */
}

/* Icon Enhancements */
.icon-glow {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.icon-glow:hover {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
    transform: scale(1.05);
}

/* Label Enhancements */
.form-label {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.form-label::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: width 0.3s ease;
}

.input-focus:focus+.form-label::before,
.form-label:hover::before {
    width: 100%;
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top-color: rgba(102, 126, 234, 1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Success/Error Messages */
.message-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: rgba(16, 185, 129, 1);
}

.message-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: rgba(239, 68, 68, 1);
}

/* Container Z-index */
.login-container {
    position: relative;
    z-index: 10;
}

/* Brand styling */
.brand-title {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive improvements */
@media (max-width: 640px) {
    .floating-elements::before {
        width: 80px;
        height: 80px;
    }

    .floating-elements::after {
        width: 120px;
        height: 120px;
    }

    .orb-1,
    .orb-2,
    .orb-3 {
        display: none;
    }
}
