:root {
    --drp-bg: #060708;
    --drp-ink: #101214;
    --drp-ink-2: #171a1d;
    --drp-card: rgba(14, 16, 18, .88);
    --drp-card-soft: rgba(255, 255, 255, .045);
    --drp-line: rgba(238, 242, 246, .14);
    --drp-line-soft: rgba(238, 242, 246, .08);
    --drp-text: #f3f0e8;
    --drp-muted: rgba(243, 240, 232, .70);
    --drp-muted-soft: rgba(243, 240, 232, .50);
    --drp-orange: #ff8a00;
    --drp-gold: #f2b544;
    --drp-gold-soft: #ffd37a;
    --drp-red: #e84a3a;
    --drp-radius: 24px;
    --drp-shadow: 0 28px 80px rgba(0, 0, 0, .64);
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--drp-text);
    background: var(--drp-bg);
    overflow-x: hidden;
}

.login-page {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .40) 47%, rgba(0, 0, 0, .74) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .18) 42%, rgba(0, 0, 0, .86) 100%),
        var(--drp-login-background) center / cover no-repeat;
    transform: scale(1.018);
    filter: saturate(.92) contrast(1.05);
    z-index: -3;
}

.login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 46% 18%, rgba(255, 138, 0, .18), transparent 30%),
        linear-gradient(0deg, rgba(7, 8, 9, .22), rgba(7, 8, 9, .22));
    pointer-events: none;
    z-index: -2;
}

.login-shell {
    width: min(100% - 34px, 440px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 48px 0 82px;
}

.login-card {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 28px 28px;
    border-radius: var(--drp-radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)),
        var(--drp-card);
    border: 1px solid var(--drp-line);
    box-shadow: var(--drp-shadow), inset 0 1px 0 rgba(255,255,255,.08);
    text-align: center;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--drp-gold), var(--drp-orange), transparent);
    opacity: .9;
}

.login-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
    opacity: .45;
}

.server-logo {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.server-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 26px rgba(0,0,0,.50));
}

.login-content { width: 100%; }

.login-kicker {
    margin: 0 0 9px;
    color: var(--drp-gold-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(30px, 7vw, 42px);
    line-height: 1;
    letter-spacing: -.045em;
    color: var(--drp-text);
}

.login-copy {
    margin: 11px auto 0;
    max-width: 305px;
    color: var(--drp-muted);
    font-size: 14px;
    line-height: 1.55;
}

.steam-button {
    width: 100%;
    min-height: 56px;
    margin-top: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(255, 209, 122, .28);
    border-radius: 16px;
    color: #17110a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .025em;
    background:
        linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,0)),
        linear-gradient(135deg, #ffd37a 0%, var(--drp-orange) 58%, #d46500 100%);
    box-shadow: 0 16px 34px rgba(255,138,0,.24), inset 0 1px 0 rgba(255,255,255,.38);
    cursor: pointer;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.steam-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.045);
    box-shadow: 0 20px 42px rgba(255,138,0,.30), inset 0 1px 0 rgba(255,255,255,.42);
}

.steam-button:active { transform: translateY(0); }

.steam-icon {
    width: 19px;
    height: 19px;
    display: inline-block;
}

.access-note {
    margin: 15px 0 0;
    color: var(--drp-muted-soft);
    font-size: 12px;
    line-height: 1.45;
}

.error-box {
    width: 100%;
    margin-top: 18px;
    padding: 12px 13px;
    border-radius: 14px;
    background: rgba(232, 74, 58, .14);
    border: 1px solid rgba(232, 74, 58, .34);
    color: #ffd9d4;
    font-size: 13px;
    line-height: 1.45;
}

.login-footer {
    position: fixed;
    left: 50%;
    bottom: 22px;
    width: min(100% - 34px, 720px);
    transform: translateX(-50%);
    z-index: 1;
    text-align: center;
    pointer-events: none;
}

.login-footer p {
    margin: 0;
    color: rgba(243, 240, 232, .56);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .72);
}

@media (max-width: 560px) {
    .login-shell {
        width: min(100% - 26px, 440px);
        padding: 28px 0 70px;
    }

    .login-card {
        padding: 26px 22px;
        border-radius: 22px;
    }

    .server-logo {
        width: 132px;
        height: 132px;
    }

    .steam-button {
        min-height: 54px;
        font-size: 12px;
    }

    .login-footer {
        bottom: 14px;
        width: min(100% - 26px, 520px);
    }

    .login-footer p {
        font-size: 11px;
        line-height: 1.35;
    }
}

/* Hotfix_56 · Instalador inicial del panel */
.installer-page::after {
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 138, 0, .22), transparent 34%),
        radial-gradient(circle at 78% 32%, rgba(242, 181, 68, .12), transparent 28%),
        linear-gradient(0deg, rgba(7, 8, 9, .34), rgba(7, 8, 9, .34));
}

.installer-shell {
    width: min(100% - 34px, 1120px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 46px 0 84px;
}

.installer-panel {
    width: 100%;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(280px, 390px) 1fr;
    border: 1px solid var(--drp-line);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.022)),
        rgba(10, 12, 14, .90);
    box-shadow: var(--drp-shadow), inset 0 1px 0 rgba(255,255,255,.075);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.installer-aside {
    position: relative;
    padding: 30px;
    background:
        radial-gradient(circle at top left, rgba(255, 138, 0, .20), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
    border-right: 1px solid var(--drp-line-soft);
}

.installer-logo {
    width: 132px;
    height: 132px;
    margin: 8px 0 24px;
}

.installer-copy h1 {
    font-size: clamp(34px, 5vw, 54px);
}

.installer-copy p:not(.login-kicker) {
    margin: 15px 0 0;
    color: var(--drp-muted);
    font-size: 14px;
    line-height: 1.65;
}

.installer-debug-badge,
.installer-note,
.installer-result {
    border-radius: 18px;
    border: 1px solid rgba(255, 211, 122, .18);
    background: rgba(255, 138, 0, .09);
}

.installer-debug-badge {
    margin-top: 20px;
    padding: 13px 14px;
    color: #ffe8bf;
}

.installer-debug-badge b,
.installer-note b,
.installer-result b {
    display: block;
    font-size: 13px;
}

.installer-debug-badge span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 232, 191, .74);
    font-size: 12px;
    line-height: 1.45;
}

.installer-steps {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
}

.installer-steps li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
    color: var(--drp-muted);
}

.installer-steps li > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.20);
    color: var(--drp-gold-soft);
    font-weight: 900;
}

.installer-steps b {
    display: block;
    color: var(--drp-text);
    font-size: 13px;
}

.installer-steps small {
    display: block;
    margin-top: 3px;
    color: var(--drp-muted-soft);
    font-size: 12px;
}

.installer-steps li.is-active {
    border-color: rgba(255, 211, 122, .30);
    background: rgba(255, 138, 0, .105);
}

.installer-steps li.is-active > span,
.installer-steps li.is-done > span {
    color: #17110a;
    background: linear-gradient(135deg, #ffd37a, var(--drp-orange));
    box-shadow: 0 10px 24px rgba(255, 138, 0, .22);
}

.installer-steps li.is-muted {
    opacity: .72;
}

.installer-card {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.installer-section-title span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 211, 122, .22);
    background: rgba(255, 138, 0, .10);
    color: var(--drp-gold-soft);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.installer-section-title h2 {
    margin: 0;
    color: var(--drp-text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
    letter-spacing: -.04em;
}

.installer-section-title p {
    max-width: 640px;
    margin: 13px 0 0;
    color: var(--drp-muted);
    font-size: 14px;
    line-height: 1.6;
}

.installer-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.installer-grid {
    display: grid;
    gap: 14px;
}

.installer-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.installer-form label:not(.installer-check) {
    display: grid;
    gap: 7px;
}

.installer-form label span {
    color: var(--drp-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.installer-form input[type="text"],
.installer-form input[type="number"],
.installer-form input[type="password"],
.installer-form input:not([type]) {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    color: var(--drp-text);
    background: rgba(255,255,255,.055);
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.installer-form input:focus {
    border-color: rgba(255, 211, 122, .42);
    background: rgba(255,255,255,.075);
    box-shadow: 0 0 0 3px rgba(255, 138, 0, .12);
}

.installer-form input::placeholder {
    color: rgba(243, 240, 232, .34);
}

.installer-check {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.04);
}

.installer-check input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--drp-orange);
}

.installer-check span {
    color: var(--drp-muted) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.45;
    text-transform: none !important;
}

.installer-note {
    padding: 13px 14px;
    color: #ffe8bf;
}

.installer-note p {
    margin: 5px 0 0;
    color: rgba(255, 232, 191, .76);
    font-size: 13px;
    line-height: 1.5;
}

.installer-note--success {
    border-color: rgba(76, 217, 141, .20);
    background: rgba(76, 217, 141, .08);
    color: #d8ffe8;
}

.installer-note--success p {
    color: rgba(216, 255, 232, .76);
}

.installer-submit {
    margin-top: 4px;
    border: 0;
}

.installer-actions {
    display: grid;
    grid-template-columns: minmax(180px, .72fr) 1fr;
    gap: 12px;
    align-items: stretch;
    margin-top: 4px;
}

.installer-actions .installer-submit {
    margin-top: 0;
}

.installer-secondary-button {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(255, 211, 122, .25);
    border-radius: 16px;
    color: #ffe8bf;
    background: rgba(255, 138, 0, .10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .025em;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.installer-secondary-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 211, 122, .42);
    background: rgba(255, 138, 0, .16);
    color: #fff4dc;
}

.installer-secondary-button:active {
    transform: translateY(0);
}

.steam-button:disabled,
.installer-submit:disabled {
    cursor: not-allowed;
    opacity: .46;
    filter: grayscale(.26);
    box-shadow: none;
    transform: none;
}

.steam-button:disabled:hover,
.installer-submit:disabled:hover {
    transform: none;
    filter: grayscale(.26);
    box-shadow: none;
}

.installer-test-state {
    margin: -2px 0 0;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.installer-test-state.is-ok {
    border: 1px solid rgba(76, 217, 141, .20);
    background: rgba(76, 217, 141, .08);
    color: #d8ffe8;
}

.installer-test-state.is-warn {
    border: 1px solid rgba(255, 138, 0, .22);
    background: rgba(255, 138, 0, .08);
    color: #ffe8bf;
}

.installer-result--test {
    border-color: rgba(76, 217, 141, .22);
    background: rgba(76, 217, 141, .075);
}

.success-box,
.warning-box {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 13px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
}

.success-box {
    background: rgba(76, 217, 141, .13);
    border: 1px solid rgba(76, 217, 141, .30);
    color: #d8ffe8;
}

.warning-box {
    background: rgba(255, 138, 0, .13);
    border: 1px solid rgba(255, 138, 0, .28);
    color: #ffe8bf;
}

.error-box ul {
    margin: 8px 0 0;
    padding-left: 18px;
    text-align: left;
}

/* Hotfix_64 · Ajuste visual de avisos del instalador */
.installer-card > .error-box {
    margin: 0 0 18px;
}

.installer-card > .success-box,
.installer-card > .warning-box,
.installer-card > .installer-result {
    margin-bottom: 18px;
}

.installer-result {
    margin-bottom: 16px;
    padding: 14px;
}

.installer-result__head {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    color: #ffe8bf;
}

.installer-result__head span {
    color: rgba(255,232,191,.62);
    font-size: 12px;
    font-weight: 800;
}

.installer-result ul {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
}

.installer-result li {
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.045);
}

.installer-result li strong,
.installer-result li small {
    display: block;
}

.installer-result li strong {
    color: var(--drp-text);
    font-size: 12px;
}

.installer-result li small {
    margin-top: 3px;
    color: var(--drp-muted);
    font-size: 12px;
    line-height: 1.4;
}

.installer-result li.is-ok {
    border: 1px solid rgba(76, 217, 141, .18);
}

.installer-result li.is-warn {
    border: 1px solid rgba(255, 138, 0, .22);
}

.installer-debug-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.installer-debug-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    color: var(--drp-muted);
    background: rgba(255,255,255,.045);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.installer-debug-actions a:hover {
    color: var(--drp-text);
    border-color: rgba(255, 211, 122, .28);
}

@media (max-width: 920px) {
    .installer-shell {
        padding-top: 24px;
    }

    .installer-panel {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .installer-aside {
        border-right: 0;
        border-bottom: 1px solid var(--drp-line-soft);
    }

    .installer-logo {
        width: 108px;
        height: 108px;
    }

    .installer-card {
        padding: 26px;
    }
}

@media (max-width: 720px) {
    .installer-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .installer-shell {
        width: min(100% - 22px, 520px);
    }

    .installer-panel {
        border-radius: 24px;
    }

    .installer-aside,
    .installer-card {
        padding: 22px;
    }

    .installer-grid--two {
        grid-template-columns: 1fr;
    }

    .installer-steps li {
        grid-template-columns: 34px 1fr;
    }

    .installer-steps li > span {
        width: 34px;
        height: 34px;
    }
}

.steam-button.is-submit-loading,
.installer-secondary-button.is-submit-loading,
.installer-submit.is-submit-loading {
    cursor: progress !important;
    opacity: .62;
    pointer-events: none;
    filter: grayscale(.18);
    transform: none !important;
    box-shadow: none;
}
