/* Login Page - Elegant Redesign */
body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 1) 0%, 
        rgba(18, 18, 24, 1) 50%, 
        rgba(28, 28, 36, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
body::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(245, 196, 91, 0.1), rgba(245, 196, 91, 0.05));
    top: -150px;
    right: -150px;
    animation: float 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(23, 162, 184, 0.05), rgba(245, 196, 91, 0.08));
    bottom: -200px;
    left: -200px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

.login-container {
    background: rgba(18, 18, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

 

.login-logo {
    display: flex;
    align-items: center;      /* Makes logo and text level */
    justify-content: center;
    gap: 15px;                /* Space between logo and text */
    margin-bottom: 5px;
    position: relative;
}

/* Image Logo */
.logo-image {
    max-width: 250px;
    height: auto;
    margin-bottom: 0;         /* Remove vertical shift */
    filter: drop-shadow(0 0 15px rgba(245, 196, 91, 0.3));
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    animation: logoFloat 4s ease-in-out infinite;
}

 
.login-form .form-group {
    margin-bottom: 28px;
    position: relative;
}

.login-form label {
    display: block;
    color: rgba(232, 232, 232, 0.9);
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.login-form label i {
    margin-right: 10px;
    color: #f5c45b;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.login-form input {
    width: 100%;
    padding: 16px 20px;
    padding-left: 52px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(42, 42, 53, 0.5);
    border-radius: 12px;
    color: #e8e8e8;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: 'Poppins', sans-serif;
}

.login-form input::placeholder {
    color: rgba(160, 160, 168, 0.5);
}

.login-form input:focus {
    outline: none;
    border-color: rgba(245, 196, 91, 0.5);
    background: rgba(245, 196, 91, 0.02);
  
 
}

.login-form input:focus + .input-icon {
    color: #f5c45b;
    transform: scale(1.1);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50px;
    color: rgba(160, 160, 168, 0.7);
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #f5c45b 0%, #f7d88b 100%);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

 
.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-btn i {
    font-size: 18px;
}

.error-message {
    background: linear-gradient(135deg, 
        rgba(220, 53, 69, 0.15) 0%, 
        rgba(220, 53, 69, 0.1) 100%);
    color: #ff6b6b;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 28px;
    text-align: center;
    font-size: 15px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translateX(-1px);
    }
    20%, 80% {
        transform: translateX(2px);
    }
    30%, 50%, 70% {
        transform: translateX(-2px);
    }
    40%, 60% {
        transform: translateX(2px);
    }
}

.login-footer {
    text-align: center;
    margin-top: 35px;
    color: rgba(160, 160, 168, 0.7);
    font-size: 14px;
    border-top: 1px solid rgba(42, 42, 53, 0.5);
    padding-top: 25px;
    position: relative;
}

.login-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    
}

/* Decorative Elements */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.decorative-circle:nth-child(1) {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(245, 196, 91, 0.1), transparent);
    top: 20%;
    right: 15%;
    animation: rotate 20s linear infinite;
}

.decorative-circle:nth-child(2) {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), transparent);
    bottom: 25%;
    left: 10%;
    animation: rotate 15s linear infinite reverse;
}

.decorative-circle:nth-child(3) {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), transparent);
    top: 60%;
    right: 25%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

 
/* Loading Animation */
.login-btn.loading {
    position: relative;
    color: transparent;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Focus Effects */
.login-form input:focus ~ .input-focus-line {
    width: 100%;
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f5c45b, transparent);
    transition: width 0.4s ease;
    border-radius: 2px;
}

/* Success State */
.login-form.success input {
    border-color: rgba(40, 167, 69, 0.3);
}

.login-form.success .input-icon {
    color: #28a745;
}

/* Enhanced Error State */
.login-form.error input {
    border-color: rgba(220, 53, 69, 0.3);
    animation: pulseError 2s ease-in-out;
}

@keyframes pulseError {
    0%, 100% {
        border-color: rgba(220, 53, 69, 0.3);
    }
    50% {
        border-color: rgba(220, 53, 69, 0.6);
    }
}

/* Smooth Appear Animation */
.login-container {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 20px;
    top: 50px;
    background: none;
    border: none;
    color: rgba(160, 160, 168, 0.7);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 4px;
}

.password-toggle:hover {
    color: #f5c45b;
    background: rgba(245, 196, 91, 0.1);
}