/* basic reset and layout */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0f;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* container to center everything */
.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* main auth box */
.box {
    background: #14141a;
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* logo at the top */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e50914;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

/* subtext under logo */
.subtext {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 24px;
}

/* login/register tab toggle */
.tabs {
    display: flex;
    width: 100%;
    background: #0e0e14;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 3px;
}

.tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.tab.active {
    background: #1a1a24;
    color: #fff;
    font-weight: 600;
}

/* form container */
.form form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
}

/* input fields */
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    background: #0e0e14;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s;
}

input::placeholder {
    color: #555;
}

input:focus {
    border-color: #e50914;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.08);
    outline: none;
}

/* login/register button */
button {
    background: #e64857;
    border: none;
    width: 100%;
    padding: 12px;
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    background: #ff5c6b;
    box-shadow: 0 4px 16px rgba(230, 72, 87, 0.3);
}

/* remember me checkbox */
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #888;
    margin-top: -6px;
    margin-bottom: 6px;
}

/* error or success message */
.message {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #ff6b6b;
}

/* hide inactive form */
.hidden {
    display: none;
}

/* === Fire Stick / TV Browser Support === */
body.is-firestick .container {
    max-width: 480px;
}

body.is-firestick .logo {
    font-size: 2.2rem;
}

body.is-firestick input[type="text"],
body.is-firestick input[type="password"],
body.is-firestick input[type="email"] {
    font-size: 1.1rem;
    padding: 14px 16px;
}

body.is-firestick input:focus {
    outline: 3px solid #e50914;
    outline-offset: 2px;
}

body.is-firestick button {
    font-size: 1.1rem;
    padding: 14px;
}

body.is-firestick button:focus {
    outline: 3px solid #e50914;
    outline-offset: 2px;
}

body.is-firestick .tab:focus {
    outline: 2px solid #e50914;
    outline-offset: 1px;
}
