/* ==========================================================================
   DLM — estilos de marca compartidos (GOS.DLM.UI).
   Se sirven en _content/GOS.DLM.UI/dlm-brand.css. Mismos tokens que DLM Studio
   (Theme/DlmTheme.cs): petrol #00819B · nav #0D2B33 · arena #EDE6DB · crema #FAF5EC
   · tinta #17242C · verde de marca #00E497.
   ========================================================================== */

/* ---- Logo ---- */
.dlm-logo-img {
    height: 34px;
    width: auto;
    flex: none;
}

.dlm-login-logo {
    height: 48px;
    width: auto;
    flex: none;
}

/* ---- Páginas de acceso (login, código) ---- */
.dlm-login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d2b33;
    background-image: radial-gradient(ellipse at 20% -10%, rgba(0, 129, 155, 0.35), transparent 55%),
        radial-gradient(ellipse at 110% 110%, rgba(0, 129, 155, 0.2), transparent 50%);
    padding: 24px 16px;
}

.dlm-login-card {
    width: 100%;
    max-width: 420px;
    background: #faf5ec;
    border-radius: 14px;
    padding: 34px 32px 30px;
    box-shadow: 0 24px 60px -24px rgba(4, 26, 32, 0.7);
}

@media (max-width: 480px) {
    .dlm-login-card {
        padding: 28px 22px 24px;
    }
}

.dlm-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.dlm-login-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #17242c;
    line-height: 1.2;
}

.dlm-login-subtitle {
    font-size: 0.76rem;
    color: #51626d;
}

.dlm-login-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #17242c;
    margin: 0 0 6px;
}

.dlm-login-text {
    font-size: 0.88rem;
    color: #51626d;
    line-height: 1.45;
    margin: 0 0 4px;
}

.dlm-field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #51626d;
    margin: 16px 0 5px;
}

.dlm-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc2b1;
    border-radius: 8px;
    padding: 11px 13px;
    font: inherit;
    font-size: 1rem; /* >= 16px: iOS no hace zoom al enfocar */
    color: #17242c;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dlm-input:focus {
    outline: none;
    border-color: #00819b;
    box-shadow: 0 0 0 3px rgba(0, 129, 155, 0.18);
}

.dlm-input-code {
    font-size: 1.6rem;
    letter-spacing: 0.45em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    padding-left: 0.45em; /* compensa el letter-spacing del último dígito */
}

.dlm-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    font-size: 0.88rem;
    color: #17242c;
    cursor: pointer;
}

.dlm-check input {
    width: 18px;
    height: 18px;
    accent-color: #00819b;
}

.dlm-btn-primary,
.dlm-btn-secondary {
    width: 100%;
    margin-top: 22px;
    border-radius: 8px;
    padding: 12px 0;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dlm-btn-primary {
    background: #00819b;
    color: #fff;
    border: 0;
}

.dlm-btn-primary:hover {
    background: #00647d;
}

.dlm-btn-secondary {
    margin-top: 12px;
    background: transparent;
    color: #00647d;
    border: 1px solid #ccc2b1;
}

.dlm-btn-secondary:hover {
    border-color: #00819b;
    background: rgba(0, 129, 155, 0.06);
}

.dlm-btn-primary:focus-visible,
.dlm-btn-secondary:focus-visible,
.dlm-link:focus-visible {
    outline: 2px solid #00819b;
    outline-offset: 2px;
}

.dlm-btn-primary[disabled],
.dlm-btn-secondary[disabled] {
    opacity: 0.6;
    cursor: default;
}

.dlm-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 0;
    color: #8395a0;
    font-size: 0.78rem;
}

.dlm-divider::before,
.dlm-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #ddd2c1;
}

.dlm-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 0.85rem;
    color: #00647d;
    text-decoration: underline;
    cursor: pointer;
}

.dlm-login-footer {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dlm-alert {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.86rem;
    margin-bottom: 14px;
    line-height: 1.4;
}

.dlm-alert-error {
    background: #fbe7e7;
    color: #8c2020;
}

.dlm-alert-info {
    background: #e2f1f4;
    color: #00495a;
}

/* ---- Botón de acción principal en barra (verde de marca) ---- */
.dlm-cta-btn {
    background-color: #00e497 !important;
    color: #0d2b33 !important;
    font-weight: 600;
    white-space: nowrap;
}

.dlm-cta-btn:hover {
    background-color: #00c381 !important;
}

/* ---- Accesibilidad: respeta "reducir movimiento" ---- */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
