@charset "UTF-8";
/* css/login_modern.css */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Prompt', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Animated Gradient Background */
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #333;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism Card */
.login-card {
    background: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Logo Animation */
.login-logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Typography */
.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    background: -webkit-linear-gradient(45deg, #09009f, #00ff95 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Styles */
.form-floating {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 1rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #23a6d5;
    box-shadow: 0 0 0 4px rgba(35, 166, 213, 0.1);
    background: #fff;
}

/* Button Styling */
.btn-login {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(to right, #23a6d5, #23d5ab);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(35, 166, 213, 0.4);
    background: linear-gradient(to right, #23d5ab, #23a6d5); /* Reverse gradient on hover */
}

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

/* Invalid Feedback */
.invalid-feedback {
    font-size: 0.85rem;
    margin-top: 5px;
}

.alert {
    border-radius: 10px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 2rem;
    }
    .login-title {
        font-size: 1.5rem;
    }
}
