/* LOGIN PAGE ONLY
   We don't touch .hero in style.css so index stays same */

/* make hero content scroll area with extra top & bottom space */
.hero-login {
    /* keep same background from .hero (style.css) */
    min-height: 100vh;
    display: block;          /* no flex-centering here */
    position: relative;
}

/* space between top bar and login card */
.login-wrapper {
    position: relative;
    z-index: 5;
    max-width: 1100px;
    margin: 260px auto 80px;   /* <-- controls distance from top & bottom */
}

/* BIG TWO-PANEL CARD */
.login-card {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

/* LEFT SIDE – dark gradient (for future 3D / image) */
.login-left {
    background: radial-gradient(circle at 0% 0%, #4c6fff 0, #101632 55%, #050922 100%);
    color: #ffffff;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-left h1 {
    font-family: "Inter", sans-serif;
    font-size: 32px;
    margin-bottom: 18px;
}

.login-left p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* RIGHT SIDE – form */
.login-right {
    padding: 48px 52px;
    font-family: "Inter", sans-serif;
    background: #ffffff;
}

.login-right h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 13px;
    color: #6b6b80;
    margin-bottom: 26px;
}

.login-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d0d4e4;
    font-size: 14px;
    margin-bottom: 16px;
    outline: none;
}

.login-form input:focus {
    border-color: #4b6fff;
    box-shadow: 0 0 0 2px rgba(75, 111, 255, 0.18);
}

.login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 12px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
}

.forgot-link {
    color: #4b6fff;
    text-decoration: none;
    font-size: 12px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-btn-main {
    width: 100%;
    padding: 10px 0;
    border-radius: 999px;
    border: none;
    background: #4b6fff;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 14px;
}

.login-btn-main:hover {
    background: #3e5dd1;
}

.login-note {
    font-size: 11px;
    color: #7a7e95;
    line-height: 1.5;
}

/* simple responsive for smaller screens */
@media (max-width: 960px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-left {
        padding: 40px 28px;
    }

    .login-right {
        padding: 32px 26px 40px;
    }

    .login-wrapper {
        margin-top: 120px;
    }
}
.login-error {
    background: rgba(255, 89, 89, 0.08);
    border: 1px solid #ff5b5b;
    color: #b00020;              /* DARK red text */
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* LOGOUT MESSAGE BOX */
.logout-message {
    background: rgba(70, 190, 110, 0.25);
    border: 1px solid #3abf78;
    color: #0f5132;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    width: 350px;
    margin: 20px auto;
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: opacity 1s ease;
}

/* Fade-out effect */
.fade-out {
    animation: fadeOutMessage 4s forwards; /* starts visible then fades */
}

@keyframes fadeOutMessage {
    0% { opacity: 1; }
    65% { opacity: 1; }
    100% { opacity: 0; }
}
