/* ==========================================================================
   Public loader download page — reuses the panel theme from styles.css
   ========================================================================== */

.dl-body {
    min-height: 100vh;
    background: var(--bg);
}

.dl {
    min-height: 100vh;
    padding: 44px 20px;
}

.dl-card {
    width: 100%;
    max-width: 470px;
    padding: 32px 32px 24px;
}

.dl .auth-logo {
    margin-bottom: 14px;
}

.dl .auth-title {
    font-size: 25px;
}

.dl .auth-form {
    margin-top: 20px;
    gap: 13px;
}

.dl .auth-form[hidden] {
    display: none;
}

.dl-key {
    height: 46px;
    padding: 11px 14px;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dl-key::placeholder {
    font-size: 12.5px;
    letter-spacing: 0.06em;
    color: var(--muted-2);
}

.dl .btn {
    height: 44px;
    font-size: 13.5px;
}

.dl .spinner {
    width: 15px;
    height: 15px;
    border-width: 2px;
}

.dl .spinner[hidden] {
    display: none;
}

.dl .auth-error {
    margin-top: 1px;
}

/* ---------------------------------------------------------------- success */

.dl-success {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    animation: dlFadeIn 0.25s ease;
}

.dl-success[hidden] {
    display: none;
}

@keyframes dlFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dl-success-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dl-check {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(70, 224, 162, 0.35);
    background: rgba(70, 224, 162, 0.1);
    color: var(--success);
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 0 24px rgba(70, 224, 162, 0.18);
}

.dl-success-title {
    margin: 1px 0 0;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.01em;
    color: var(--text);
}

.dl-success-sub {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

.dl-meta {
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(5, 9, 24, 0.55);
}

.dl-meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
}

.dl-meta-row + .dl-meta-row {
    border-top: 1px solid rgba(140, 158, 255, 0.08);
}

.dl-meta dt {
    flex: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}

.dl-meta dd {
    margin: 0;
    min-width: 0;
    font-size: 12.5px;
    color: var(--text-soft);
    text-align: right;
}

.dl-meta .dl-hash {
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1.55;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.dl-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dl-actions .btn {
    width: 100%;
}

.dl-reset {
    color: var(--muted);
}

.dl-hint {
    text-align: center;
}

.dl .auth-foot {
    margin-top: 22px;
}

@media (max-width: 520px) {
    .dl {
        padding: 28px 14px;
    }

    .dl-card {
        padding: 26px 20px 20px;
        border-radius: 18px;
    }

    .dl .auth-title {
        font-size: 22px;
    }

    .dl-key {
        font-size: 14px;
        letter-spacing: 0.05em;
    }
}
