/* =============================================
   Login Page Styles
   ============================================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.login-main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.login-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

.login-logo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

    .login-logo-circle i {
        font-size: 3rem;
        color: white;
    }

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
}

.login-header p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.login-body {
    margin-top: 30px;
}

.form-floating > label {
    color: #64748b;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #667eea;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    height: 56px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.05);
    }

.form-check-input:checked {
}

.btn-primary {
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.login-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.demo-credentials {
    max-width: 480px;
    margin: 0 auto;
}

    .demo-credentials .alert {
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-logo-circle {
        width: 80px;
        height: 80px;
    }

        .login-logo-circle i {
            font-size: 2.5rem;
        }
}

/* Alert Animations */
.alert {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
