:root {
    --netflix-black: #0b0b0f;
    --netflix-dark: #0b1116;
    --netflix-gray: rgba(255, 255, 255, 0.06);
    --netflix-gray-2: rgba(255, 255, 255, 0.1);
    --netflix-white: #ffffff;
    --netflix-light-gray: rgba(255, 255, 255, 0.72);
    --netflix-red: #e50914;
    --netflix-red-hover: #f40612;
}

* {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(229, 9, 20, 0.18), transparent 30%),
        linear-gradient(180deg, #07090d 0%, #0b1116 44%, #07090d 100%);
    color: var(--netflix-white);
}

.auth-top-bar {
    background: linear-gradient(135deg, var(--netflix-red) 0%, var(--netflix-red-hover) 100%);
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.auth-top-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

.auth-brand-bar {
    background: rgba(7, 10, 14, 0.86);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 14px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(18px);
}

.auth-brand-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-brand img {
    display: block;
    max-height: 78px;
    width: auto;
}

.auth-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 34px 20px 56px;
}

.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(18, 25, 35, 0.96), rgba(12, 18, 26, 0.96));
    border-radius: 24px;
    padding: 36px 32px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 28px 84px rgba(0,0,0,0.4);
}

.auth-card.auth-card-wide {
    max-width: 560px;
}

.auth-card.auth-card-status {
    text-align: center;
}

.auth-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.auth-icon.is-success {
    color: #2ecc71;
}

.auth-icon.is-error,
.auth-icon.is-warning,
.auth-icon.is-brand {
    color: var(--netflix-red);
}

.auth-title {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    text-align: center;
}

.auth-subtitle {
    margin: 0 0 28px;
    color: var(--netflix-light-gray);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #e6eef8;
}

.auth-form input,
.auth-form select,
.auth-input {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font-size: 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    background: #fff;
    color: #111;
}

.auth-form input::placeholder,
.auth-input::placeholder {
    color: #6b7280;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-input:focus {
    outline: none;
    border-color: rgba(229, 9, 20, 0.55);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.12);
}

.auth-button,
.auth-button-secondary {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.auth-button {
    background: linear-gradient(135deg, var(--netflix-red) 0%, var(--netflix-red-hover) 100%);
    color: #fff;
    box-shadow: 0 18px 46px rgba(229, 9, 20, 0.24);
}

.auth-button:hover,
.auth-button-secondary:hover {
    transform: translateY(-2px);
}

.auth-button:hover {
    filter: brightness(1.04);
    box-shadow: 0 22px 54px rgba(229, 9, 20, 0.3);
}

.auth-button-secondary {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.auth-button-secondary:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 16px 40px rgba(0,0,0,0.24);
}

.auth-alert,
.auth-message {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.auth-alert-error,
.auth-message-error {
    background: rgba(229, 9, 20, 0.12);
    color: #ffe2e5;
    border-color: rgba(229, 9, 20, 0.22);
}

.auth-alert-success,
.auth-message-success {
    background: rgba(46, 204, 113, 0.12);
    color: #d9ffe8;
    border-color: rgba(46, 204, 113, 0.24);
}

.auth-note {
    margin: 0 0 20px;
    color: var(--netflix-light-gray);
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}

.auth-note strong {
    color: #fff;
}

.auth-link-row {
    margin-top: 18px;
    text-align: center;
    color: var(--netflix-light-gray);
    font-size: 14px;
}

.auth-link-row a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.auth-link-row a:hover {
    color: #ffd5d8;
    text-decoration: underline;
}

.auth-button-stack {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.auth-back-home {
    margin-top: 20px;
    text-align: center;
}

.auth-back-home a {
    color: var(--netflix-light-gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.auth-back-home a:hover {
    color: #fff;
}

@media (max-width: 640px) {
    .auth-main {
        padding: 24px 14px 40px;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .auth-title {
        font-size: 26px;
    }
}
