/**
 * ============================================================
 * MovieApp — Login Page Stylesheet
 * ============================================================
 * Standalone styles for the login page with a
 * cinematic background and glassmorphic card design.
 * ============================================================
 */

/* ===== RESET & BASE ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #000;
}

/* ===== CINEMATIC BACKGROUND ===== */

.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/login-bg.png') center center / cover no-repeat;
    z-index: 0;
}

.login-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}

/* ===== HEADER / NAVBAR ===== */

.login-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.login-header .brand {
    font-size: 2rem;
    font-weight: 700;
    color: #e50914;
    text-decoration: none;
    letter-spacing: -1px;
}

/* ===== LANGUAGE SWITCHER ===== */

.login-header .lang-switcher {
    display: flex;
    gap: 6px;
}

.login-header .lang-switcher a {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.login-header .lang-switcher a.active {
    background: #e50914;
    color: #fff;
}

.login-header .lang-switcher a:not(.active) {
    background: rgba(255, 255, 255, 0.15);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.login-header .lang-switcher a:not(.active):hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ===== LOGIN CARD ===== */

.login-wrapper {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: rgba(0, 0, 0, 0.78);
    border-radius: 8px;
    padding: 60px 68px 40px;
}

.login-card h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 28px;
}

/* ===== FORM FIELDS ===== */

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: #333;
    border: none;
    border-radius: 6px;
    color: #fff;
    outline: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: #8c8c8c;
}

.form-group input:focus {
    background: #454545;
    box-shadow: 0 0 0 2px #e50914;
}

.form-group .invalid-feedback {
    display: block;
    color: #e87c03;
    font-size: 0.82rem;
    margin-top: 6px;
    padding-left: 4px;
}

/* ===== REMEMBER ME ROW ===== */

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    margin-top: 4px;
}

.remember-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b3b3b3;
    font-size: 0.85rem;
    cursor: pointer;
}

.remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #e50914;
    cursor: pointer;
}

.remember-row .forgot-link {
    color: #b3b3b3;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.remember-row .forgot-link:hover {
    text-decoration: underline;
    color: #fff;
}

/* ===== SUBMIT BUTTON ===== */

.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: #e50914;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s;
    margin-bottom: 12px;
}

.btn-login:hover {
    background: #f6121d;
}

.btn-login:active {
    background: #bf0811;
}

/* ===== ERROR ALERT ===== */

.login-error {
    background: rgba(229, 9, 20, 0.12);
    border-left: 3px solid #e50914;
    color: #e87c03;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.88rem;
    margin-bottom: 20px;
}

/* ===== FOOTER ===== */

.login-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 30px 40px;
    color: #737373;
    font-size: 0.82rem;
}

/* ===== RESPONSIVE (Mobile ≤ 500px) ===== */

@media (max-width: 500px) {
    .login-card {
        padding: 40px 28px 30px;
    }

    .login-header {
        padding: 16px 20px;
    }

    .login-header .brand {
        font-size: 1.5rem;
    }
}
