/* Form đăng nhập / đăng ký — KPhim (tách khỏi theme) */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    min-height: 100%;
}
body.auth-ro {
    font-family:
        'Google Sans Flex',
        system-ui,
        -apple-system,
        sans-serif;
    font-optical-sizing: auto;
    background: #0b0d12;
    color: #e5e7eb;
    -webkit-font-smoothing: antialiased;
}

/* button/input dùng font hệ thống mặc định nếu không khai báo — ép kế thừa Google Sans Flex */
body.auth-ro button,
body.auth-ro input,
body.auth-ro select,
body.auth-ro textarea {
    font-family: inherit;
    font-optical-sizing: inherit;
}

.auth-ro__shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
        max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.auth-ro__modal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: min(960px, 100%);
    min-height: min(520px, 92vh);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.auth-ro__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 0.45rem;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}
.auth-ro__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.auth-ro__brand {
    position: relative;
    min-height: 220px;
    background-color: #121826;
    background-image:
        linear-gradient(135deg, rgba(18, 22, 38, 0.92) 0%, rgba(22, 27, 46, 0.88) 45%, rgba(14, 16, 26, 0.95) 100%),
        url("https://images.unsplash.com/photo-1485846234645-a62644f84728?auto=format&fit=crop&w=1200&q=70");
    background-size: cover;
    background-position: center;
}
.auth-ro__brand-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 18, 0.55) 55%, rgba(8, 10, 18, 0.92) 100%);
}
.auth-ro__logo-mark {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
}
.auth-ro__logo-mark svg {
    flex-shrink: 0;
}
.auth-ro__brand-title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}
.auth-ro__brand-tag {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
}

.auth-ro__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2rem 1.75rem;
    background: #161b2e;
}

.auth-ro__h1 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.auth-ro__sub {
    margin: 0 0 1.35rem;
    font-size: 0.88rem;
    color: #9ca3af;
    line-height: 1.45;
}
.auth-ro__sub a {
    color: #fbbf24;
    font-weight: 700;
    text-decoration: none;
}
.auth-ro__sub a:hover {
    text-decoration: underline;
}

.auth-ro__err {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.45rem;
    font-size: 0.82rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.auth-ro__field {
    margin-bottom: 0.85rem;
}
.auth-ro__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #9ca3af;
}
.auth-ro__input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    border-radius: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #f3f4f6;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.auth-ro__input::placeholder {
    color: #6b7280;
}
.auth-ro__input:focus {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}

.auth-ro__check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: #d1d5db;
}
.auth-ro__check input {
    width: 1rem;
    height: 1rem;
}

.auth-ro__turnstile {
    margin-bottom: 1rem;
    min-height: 4rem;
}

.auth-ro__submit {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 800;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    color: #111;
    background: linear-gradient(135deg, #fde047, #fbbf24, #f59e0b);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
    transition:
        filter 0.15s ease,
        transform 0.08s ease;
}
.auth-ro__submit:hover {
    filter: brightness(1.05);
}
.auth-ro__submit:active {
    transform: scale(0.99);
}

.auth-ro__forgot {
    text-align: center;
    margin: 0;
    font-size: 0.85rem;
}
.auth-ro__forgot a {
    color: #e5e7eb;
    font-weight: 600;
    text-decoration: none;
}
.auth-ro__forgot a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .auth-ro__modal {
        grid-template-columns: 1fr;
        min-height: unset;
    }
    .auth-ro__brand {
        min-height: 180px;
    }
    .auth-ro__panel {
        padding: 1.5rem 1.25rem 1.75rem;
    }
}
