:root {
    --primary-glow: linear-gradient(135deg, #696cff, #8592f0);
    --primary-hover-glow: linear-gradient(135deg, #5f61e6, #7582eb);
    --font-family-modern: 'Plus Jakarta Sans', 'Public Sans', -apple-system, sans-serif;
}

body {
    font-family: var(--font-family-modern);
    background: #f4f6fa;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Animated Blobs */
.bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    animation: blob-bounce 12s infinite alternate ease-in-out;
}

.blob-1 {
    background: #696cff;
    width: 450px;
    height: 450px;
    top: -150px;
    left: -100px;
}

.blob-2 {
    background: #8592f0;
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -80px;
    animation-delay: 3s;
    animation-duration: 15s;
}

.blob-3 {
    background: #e1e4fb;
    width: 300px;
    height: 300px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 6s;
    animation-duration: 18s;
}

@keyframes blob-bounce {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(50px, 60px) scale(1.1) rotate(120deg);
    }
    100% {
        transform: translate(-20px, -40px) scale(0.9) rotate(360deg);
    }
}

/* Glassmorphism Card Container */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 1.5rem;
}

.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(105, 108, 255, 0.06), 
                0 5px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    box-shadow: 0 25px 60px rgba(105, 108, 255, 0.1), 
                0 8px 20px rgba(0, 0, 0, 0.03);
}

.card-body {
    padding: 3rem 2.5rem !important;
}

/* Branding and Logo Style */
.app-brand {
    margin-bottom: 2rem !important;
}

.app-brand-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-glow);
    color: #fff !important;
    margin-bottom: 0.75rem;
    box-shadow: 0 10px 20px rgba(105, 108, 255, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-light 3s infinite ease-in-out;
}

.app-brand-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.app-brand-logo i {
    font-size: 2rem !important;
}

.app-brand-text {
    font-family: var(--font-family-modern);
    font-size: 1.65rem;
    font-weight: 800 !important;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #2b3044, #4e5d78);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulse-light {
    0%, 100% {
        box-shadow: 0 10px 20px rgba(105, 108, 255, 0.3);
    }
    50% {
        box-shadow: 0 10px 25px rgba(105, 108, 255, 0.5);
    }
}

/* Form Inputs & Custom Focus */
.form-label {
    font-family: var(--font-family-modern);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #566a7f;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.form-control {
    font-family: var(--font-family-modern);
    padding: 0.75rem 1.1rem;
    border-radius: 0.5rem;
    border: 1.5px solid rgba(105, 108, 255, 0.15);
    background: rgba(255, 255, 255, 0.8);
    color: #435971;
    font-size: 0.925rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-control::placeholder {
    color: #a1acb8;
}

.form-control:focus {
    border-color: #696cff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(105, 108, 255, 0.12);
}

/* Password Field Wrapper */
.password-field-container {
    position: relative;
    width: 100%;
}

.password-field-container .form-control {
    padding-right: 3rem; /* Dành chỗ cho icon con mắt ở bên phải */
    width: 100%;
}

.toggle-password-btn {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #697a8d;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.toggle-password-btn:hover {
    color: #696cff;
    transform: translateY(-50%) scale(1.1);
}

/* Buttons with Gradient Glow */
.btn-primary {
    font-family: var(--font-family-modern);
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    background: var(--primary-glow);
    border: none;
    box-shadow: 0 8px 20px rgba(105, 108, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover-glow);
    box-shadow: 0 10px 25px rgba(105, 108, 255, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(105, 108, 255, 0.3);
}

/* Alerts Styling */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: rgba(255, 62, 29, 0.08);
    color: #ff3e1d;
    border: 1.5px solid rgba(255, 62, 29, 0.15);
}

.alert-success {
    background: rgba(113, 221, 55, 0.08);
    color: #71dd37;
    border: 1.5px solid rgba(113, 221, 55, 0.15);
}

/* Typography spacing */
.login-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #2b3044;
    text-align: center;
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 0.875rem;
    color: #697a8d;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
}

.input-wrapper {
    margin-bottom: 1.5rem;
}
