/* =========================
   LOGIN PAGE – GLASSMORPHIC PREMIUM UI
========================= */
body.auth-body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;

    background:
        linear-gradient(
            rgba(8, 15, 30, 0.35),
            rgba(8, 15, 30, 0.35)
        ),
        url('../assets/login-bg.webp');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    margin: 0;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    animation: floatParticle 20s linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-50vh) translateX(30vw) scale(0.8); opacity: 0.4; }
    100% { transform: translateY(-100vh) translateX(-30vw) scale(1); opacity: 0.6; }
}

/* =========================
   LOGIN CONTAINER
========================= */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* GLASSMORPHIC CARD */
.auth-card {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 32px 42px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* Floating animation */
.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

/* HEADER */
.auth-card h2 {
    margin: 0 0 6px 0;
    font-size: 32px;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* LOGO SECTION */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

/* LOGO IMAGE */
.logo-img {
    width: 170px;
    height: auto;
    object-fit: contain;
    margin-bottom: 6px;

    filter: drop-shadow(0 6px 18px rgba(255,255,255,0.12));

    transition: transform 0.3s ease;
}

/* SUBTLE HOVER */
.logo-img:hover {
    transform: scale(1.05);
}

.auth-card .auth-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin: 8px 0 25px 0;
}

/* ERROR MESSAGE */
.error-msg {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
}

/* INPUT FIELDS */
.auth-card input[type="text"],
.auth-card input[type="password"] {
    width: 85%;
    padding: 14px 10px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.auth-card input::placeholder {
    color: rgba(255,255,255,0.7);
}

.auth-card input:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.2);
}

/* BUTTON */
button.btn-primary {
    width: 85%;
    padding: 14px 0;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.08);
}

button.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}


/* RESPONSIVE */
@media screen and (max-width: 480px) {
    .auth-card {
        padding: 40px 25px;
    }

    .auth-card h2 {
        font-size: 28px;
    }
}

/* AUTH LINKS */
.auth-card a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}

/* HOVER EFFECT */
.auth-card a:hover {
    color: #ffffff;
}

/* UNDERLINE ANIMATION */
.auth-card a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: #fff;
    transition: width 0.25s ease;
}

.auth-card a:hover::after {
    width: 100%;
}

/* RESET LINK BUTTON */
.reset-link-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.reset-link-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* INPUT GROUP */
.input-group {
    position: relative;
    width: 100%;
    margin: 0 0 18px 0;
}

/* PASSWORD INPUT INSIDE GROUP */
.input-group input {
    width: 100% !important;
    margin-bottom: 0 !important;
    padding: 14px 45px 14px 16px;
    box-sizing: border-box;
}

/* TOGGLE PASSWORD ICON */
.toggle-password {
    position: absolute;
    right: 0.5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255,255,255,0.75);
    font-size: 18px;
    transition: color 0.25s ease;
}

.toggle-password:hover {
    color: #fff;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}