/* ==========================================================
   DT · LOGIN DESKTOP
   ========================================================== */

body {
    margin: 0;
    background: #f4f5f6;
}


/* Página */

.dt-login-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    min-height: calc(100vh - 120px);

    padding: 70px 24px 90px;

    box-sizing: border-box;
}


/* Tarjeta */

.dt-login-card {
    width: 100%;
    max-width: 460px;

    box-sizing: border-box;

    padding: 36px 42px 34px;

    background: #fff;

    border: 1px solid #e4e6e8;
    border-radius: 20px;

    box-shadow:
        0 20px 55px rgba(0, 0, 0, .08);
}


/* Marca */

.dt-login-brand {
    display: flex;
    justify-content: center;

    margin-bottom: 18px;
}

.dt-login-brand picture {
    display: block;
}

.dt-login-logo {
    display: block;

    width: 205px;
    max-height: 72px;

    object-fit: contain;
}


/* Cabecera */

.dt-login-heading {
    margin-bottom: 28px;

    text-align: center;
}

.dt-login-heading h1 {
    margin: 0;

    color: #171717;

    font-size: 27px;
    line-height: 1.2;
    font-weight: 900;
}

.dt-login-heading p {
    margin: 8px 0 0;

    color: #858585;

    font-size: 13px;
}


/* Aviso intentos */

.dt-login-warning {
    margin-bottom: 20px;

    padding: 11px 13px;

    background: #fff5ef;

    border: 1px solid #ffd5c2;
    border-radius: 9px;

    color: #cc4d17;

    font-size: 12px;
}


/* Form */

.dt-login-form {
    display: grid;
    gap: 18px;
}

.dt-login-field {
    display: grid;
    gap: 7px;
}

.dt-login-field label {
    color: #292929;

    font-size: 12px;
    font-weight: 800;
}

.dt-login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dt-login-label-row span {
    color: #9b9b9b;

    font-size: 10px;
    font-weight: 700;
}

.dt-login-field input {
    width: 100%;
    height: 46px;

    box-sizing: border-box;

    padding: 0 14px;

    background: #fff;

    border: 1px solid #d8dbdd;
    border-radius: 10px;

    outline: none;

    color: #181818;

    font-size: 14px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.dt-login-field input:hover {
    border-color: #bfc3c6;
}

.dt-login-field input:focus {
    border-color: #ef641f;

    box-shadow:
        0 0 0 3px rgba(239, 100, 31, .11);
}

.dt-login-field small {
    color: #999;

    font-size: 10px;
    line-height: 1.4;
}


/* Opciones */

.dt-login-advanced {
    overflow: hidden;

    background: #fafafa;

    border: 1px solid #e5e7e8;
    border-radius: 10px;
}

.dt-login-advanced summary {
    padding: 12px 14px;

    color: #555;

    cursor: pointer;

    font-size: 11px;
    font-weight: 800;

    user-select: none;
}

.dt-login-advanced__body {
    display: grid;
    gap: 12px;

    padding: 2px 14px 14px;
}

.dt-login-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    color: #555;

    cursor: pointer;

    font-size: 11px;
    line-height: 1.35;
}

.dt-login-check input {
    flex: 0 0 auto;

    width: 15px;
    height: 15px;

    margin: 0;
}


/* Botón */

.dt-login-button {
    width: 100%;
    height: 46px;

    margin-top: 2px;

    border: 0;
    border-radius: 10px;

    background: #ef641f;
    color: #fff;

    cursor: pointer;

    font-size: 13px;
    font-weight: 900;

    letter-spacing: .15px;

    transition:
        transform .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.dt-login-button:hover {
    background: #db5616;

    transform: scale(1.012);

    box-shadow:
        0 8px 18px rgba(239, 100, 31, .18);
}

.dt-login-button:disabled {
    opacity: .65;

    cursor: wait;

    transform: none;
}


/* ==========================================================
   DARK
   ========================================================== */

html[data-theme="dark"] body {
    background: #0c0f10;
}

html[data-theme="dark"] .dt-login-card {
    background: #15191a;

    border-color: #292f31;

    box-shadow:
        0 22px 60px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .dt-login-heading h1 {
    color: #f5f5f5;
}

html[data-theme="dark"] .dt-login-heading p {
    color: #92999b;
}

html[data-theme="dark"] .dt-login-field label {
    color: #ededed;
}

html[data-theme="dark"] .dt-login-label-row span,
html[data-theme="dark"] .dt-login-field small {
    color: #828a8c;
}

html[data-theme="dark"] .dt-login-field input {
    background: #0f1314;

    border-color: #343b3d;

    color: #fff;
}

html[data-theme="dark"] .dt-login-field input:hover {
    border-color: #465052;
}

html[data-theme="dark"] .dt-login-field input:focus {
    border-color: #55a630;

    box-shadow:
        0 0 0 3px rgba(85, 166, 48, .13);
}

html[data-theme="dark"] .dt-login-advanced {
    background: #101415;

    border-color: #303638;
}

html[data-theme="dark"] .dt-login-advanced summary,
html[data-theme="dark"] .dt-login-check {
    color: #d8dcdd;
}

html[data-theme="dark"] .dt-login-button {
    background: #55a630;
}

html[data-theme="dark"] .dt-login-button:hover {
    background: #3f7f24;

    box-shadow:
        0 8px 18px rgba(85, 166, 48, .18);
}


/* Responsive por si se abre desktop estrecho */

@media (max-width: 600px) {
    .dt-login-page {
        padding: 35px 14px 60px;
    }

    .dt-login-card {
        padding: 28px 24px;
        border-radius: 16px;
    }
}


/* ==========================================================
   AYUDA DE ACCESO
   ========================================================== */

.dt-login-help {
    margin-top: 25px;
    padding-top: 21px;

    border-top: 1px solid #eceeef;
}

.dt-login-help__title {
    margin-bottom: 12px;

    color: #777;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .7px;
    text-transform: uppercase;
}

.dt-login-help__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px 12px;
}

.dt-login-help__grid a {
    display: flex;
    align-items: center;

    min-height: 32px;

    box-sizing: border-box;

    padding: 7px 9px;

    border-radius: 7px;

    color: #555;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}

.dt-login-help__grid a:hover {
    background: rgba(239, 100, 31, .08);
    color: #ef641f;

    transform: translateX(2px);
}

.dt-login-help__complaint {
    grid-column: 1 / -1;

    justify-content: center;

    margin-top: 2px;

    border-top: 1px solid #f0f0f0;

    color: #888 !important;
}

.dt-login-help__complaint:hover {
    color: #ef641f !important;
}


/* DARK */

html[data-theme="dark"] .dt-login-help {
    border-color: #2b3133;
}

html[data-theme="dark"] .dt-login-help__title {
    color: #747d7f;
}

html[data-theme="dark"] .dt-login-help__grid a {
    color: #aeb5b7;
}

html[data-theme="dark"] .dt-login-help__grid a:hover {
    background: rgba(85, 166, 48, .10);
    color: #69c84a;
}

html[data-theme="dark"] .dt-login-help__complaint {
    border-color: #292f31;

    color: #848d8f !important;
}

html[data-theme="dark"] .dt-login-help__complaint:hover {
    color: #69c84a !important;
}


/* Estado temporalmente bloqueado */
.dt-login-form.is-locked {
    opacity: .46;
    filter: grayscale(.25);
    pointer-events: none;
    user-select: none;
}

.dt-login-form.is-locked .dt-login-button {
    cursor: not-allowed;
}
