:root {
    --tunas-red: #d71920;
    --tunas-red-dark: #a70f17;
    --tunas-ink: #15181f;
    --tunas-graphite: #222935;
    --tunas-muted: #667085;
    --tunas-line: #d9dee8;
    --tunas-surface: #ffffff;
    --tunas-soft: #f5f7fb;
    --tunas-blue: #1464f4;
    --tunas-gold: #c69214;
}

* {
    letter-spacing: 0;
}

html,
body,
.tunas-auth-app {
    min-height: 100%;
}

.tunas-login-page {
    margin: 0;
    background: var(--tunas-soft);
    color: var(--tunas-ink);
    font-family: "Open Sans", Arial, sans-serif;
}

.tunas-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 520px);
    background: var(--tunas-soft);
}

.tunas-login-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 48px;
    isolation: isolate;
}

.tunas-hero-image,
.tunas-hero-shade {
    position: absolute;
    inset: 0;
}

.tunas-hero-image {
    z-index: -3;
    background-image: url("../../img/login-bg/login-bg-17.jpg");
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.tunas-hero-shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(18, 20, 27, 0.96) 0%, rgba(18, 20, 27, 0.82) 42%, rgba(18, 20, 27, 0.36) 100%),
        linear-gradient(180deg, rgba(215, 25, 32, 0.16) 0%, rgba(20, 100, 244, 0.12) 100%);
}

.tunas-login-hero::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.tunas-hero-content {
    max-width: 720px;
    color: #ffffff;
}

.tunas-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 34px;
}

.tunas-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--tunas-red);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}

.tunas-brand-lockup span,
.tunas-brand-lockup strong {
    display: block;
    line-height: 1.15;
}

.tunas-brand-lockup span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.tunas-brand-lockup strong {
    color: #ffffff;
    font-size: 18px;
}

.tunas-kicker {
    color: #ffdfdf;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.tunas-hero-content h1 {
    max-width: 660px;
    color: #ffffff;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 18px;
}

.tunas-hero-copy {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
}

.tunas-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
    margin-top: 38px;
}

.tunas-hero-stats div {
    min-height: 94px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.tunas-hero-stats strong,
.tunas-hero-stats span {
    display: block;
}

.tunas-hero-stats strong {
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 10px;
}

.tunas-hero-stats span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.tunas-auth-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 251, 0.96)),
        var(--tunas-soft);
}

.tunas-auth-card {
    width: 100%;
    max-width: 430px;
    border-radius: 8px;
    border: 1px solid rgba(21, 24, 31, 0.08);
    background: var(--tunas-surface);
    box-shadow: 0 24px 70px rgba(21, 24, 31, 0.12);
    padding: 34px;
}

.tunas-auth-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.tunas-auth-eyebrow {
    display: block;
    color: var(--tunas-red);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tunas-auth-header h2 {
    color: var(--tunas-ink);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px;
}

.tunas-auth-header p {
    color: var(--tunas-muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.tunas-lock-badge {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: var(--tunas-graphite);
    box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.08);
}

.tunas-alert {
    border: 0;
    border-left: 4px solid var(--tunas-gold);
    border-radius: 8px;
    background: #fff7dd;
    color: #6f4d00;
    font-size: 13px;
    padding: 14px 16px;
}

.tunas-alert ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.tunas-field {
    margin-bottom: 18px;
}

.tunas-field label {
    display: block;
    color: var(--tunas-graphite);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.tunas-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    border: 1px solid var(--tunas-line);
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tunas-input-wrap:focus-within {
    border-color: rgba(215, 25, 32, 0.65);
    box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.12);
}

.tunas-input-wrap i {
    width: 48px;
    text-align: center;
    color: var(--tunas-red);
    font-size: 14px;
}

.tunas-input-wrap input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tunas-ink);
    font-size: 14px;
    font-weight: 600;
    padding: 0 14px 0 0;
}

.tunas-input-wrap input::placeholder {
    color: #9aa3b2;
    font-weight: 600;
}

.tunas-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 2px 0 18px;
    color: var(--tunas-muted);
    font-size: 12px;
}

.tunas-login-options .form-check {
    min-height: auto;
    margin: 0;
}

.tunas-login-options .form-check-input {
    border-color: #b9c0cc;
    border-radius: 4px;
}

.tunas-login-options .form-check-input:checked {
    background-color: var(--tunas-red);
    border-color: var(--tunas-red);
}

.tunas-login-options span {
    white-space: nowrap;
    color: var(--tunas-blue);
    font-weight: 800;
}

.tunas-turnstile-box {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 18px;
}

#turnstileWidget {
    width: 100%;
    min-height: 65px;
}

#turnstileStatus,
.tunas-turnstile-missing {
    color: var(--tunas-muted);
    font-size: 12px;
    font-weight: 700;
}

.tunas-turnstile-missing {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    background: #fff1f2;
    color: var(--tunas-red-dark);
}

.tunas-login-button {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    background: var(--tunas-red);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(215, 25, 32, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tunas-login-button:hover,
.tunas-login-button:focus {
    background: var(--tunas-red-dark);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(215, 25, 32, 0.32);
}

.tunas-login-button:active {
    transform: translateY(1px);
}

.tunas-login-button:disabled,
.tunas-login-button.is-loading {
    cursor: wait;
    background: #8f98a8;
    box-shadow: none;
}

.tunas-login-button.is-loading i {
    animation: tunasSpin 0.9s linear infinite;
}

@keyframes tunasSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .tunas-login-shell {
        grid-template-columns: 1fr;
    }

    .tunas-login-hero {
        min-height: 420px;
        padding: 36px;
    }

    .tunas-auth-panel {
        min-height: auto;
        padding: 36px 20px;
    }
}

@media (max-width: 640px) {
    .tunas-login-hero {
        min-height: 520px;
        padding: 26px 20px;
    }

    .tunas-hero-content h1 {
        font-size: 34px;
        line-height: 1.12;
    }

    .tunas-hero-copy {
        font-size: 14px;
    }

    .tunas-hero-stats {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .tunas-hero-stats div {
        min-height: 72px;
    }

    .tunas-auth-card {
        padding: 24px;
    }

    .tunas-auth-header {
        align-items: center;
    }

    .tunas-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}
