/* =========================================================
   DATCOR AUTH
   ========================================================= */

:root {
    --dc-auth-primary: #0f4bc4;
    --dc-auth-primary-dark: #103a8d;
    --dc-auth-border: #dbe3ef;
    --dc-auth-text: #17233a;
    --dc-auth-muted: #6d7c91;
    --dc-auth-bg: #f4f7fb;
    --dc-auth-success: #17834f;
    --dc-auth-danger: #b13f3f;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--dc-auth-bg);
    color: var(--dc-auth-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.dc-auth-page {
    min-height: 100vh;
}

.dc-auth-grid {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(480px, 1fr);
}

/* Panel de marca */

.dc-auth-brand-panel {
    position: relative;
    display: flex;
    overflow: hidden;
    background: #081427;
    color: #fff;
}

.dc-auth-brand-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 15% 12%,
            rgba(59, 130, 246, .28),
            transparent 34%
        ),
        radial-gradient(
            circle at 88% 85%,
            rgba(34, 211, 238, .13),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            #071120 0%,
            #0c1b34 52%,
            #102847 100%
        );
}

.dc-auth-brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 50px;
}

.dc-auth-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.dc-auth-brand-mark,
.dc-auth-mobile-mark {
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-weight: 900;
}

.dc-auth-brand-mark {
    width: 52px;
    height: 52px;
    background: #fff;
    color: #0b1a31;
    font-size: 19px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.dc-auth-brand strong,
.dc-auth-mobile-brand strong {
    display: block;
}

.dc-auth-brand strong {
    color: #fff;
    font-size: 18px;
}

.dc-auth-brand span {
    display: block;
    margin-top: 3px;
    color: #b8c4d5;
    font-size: 12px;
}

.dc-auth-brand-main {
    max-width: 620px;
}

.dc-auth-brand-eyebrow {
    display: inline-flex;
    width: max-content;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    padding: 7px 11px;
    color: #c9d3e1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dc-auth-brand-main h1 {
    margin: 20px 0 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.dc-auth-brand-main > p {
    max-width: 560px;
    margin: 18px 0 0;
    color: #b8c4d5;
    font-size: 15px;
    line-height: 1.75;
}

.dc-auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 32px;
}

.dc-auth-feature-grid article {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
    padding: 15px;
    backdrop-filter: blur(5px);
}

.dc-auth-feature-grid span,
.dc-auth-feature-grid strong,
.dc-auth-feature-grid small {
    display: block;
}

.dc-auth-feature-grid span {
    color: #8290a5;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.dc-auth-feature-grid strong {
    margin-top: 6px;
    color: #fff;
    font-size: 13px;
}

.dc-auth-feature-grid small {
    margin-top: 4px;
    overflow: hidden;
    color: #b2bed0;
    font-size: 9px;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.dc-auth-brand-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #7f8ca0;
    font-size: 10px;
}

/* Contenido */

.dc-auth-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at top right,
            rgba(15, 75, 196, .08),
            transparent 24rem
        ),
        #f4f7fb;
    padding: 36px;
}

.dc-auth-container {
    width: min(100%, 620px);
}

.dc-auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 11px;
    margin-bottom: 22px;
}

.dc-auth-mobile-mark {
    width: 44px;
    height: 44px;
    background: #0c1b34;
    color: #fff;
    font-size: 15px;
}

.dc-auth-mobile-brand strong {
    color: var(--dc-auth-text);
    font-size: 16px;
}

.dc-auth-mobile-brand span {
    display: block;
    margin-top: 2px;
    color: var(--dc-auth-muted);
    font-size: 11px;
}

.dc-auth-card {
    overflow: hidden;
    border: 1px solid var(--dc-auth-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 34, 67, .09);
}

.dc-auth-card-header {
    padding: 28px 30px 0;
}

.dc-auth-card-eyebrow {
    display: inline-flex;
    border: 1px solid var(--dc-auth-border);
    border-radius: 999px;
    background: #f7f9fc;
    padding: 6px 9px;
    color: #68788e;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.dc-auth-card-header h2 {
    margin: 12px 0 0;
    color: var(--dc-auth-text);
    font-size: 27px;
    letter-spacing: -.025em;
}

.dc-auth-card-header p {
    max-width: 480px;
    margin: 8px 0 0;
    color: var(--dc-auth-muted);
    font-size: 12px;
    line-height: 1.65;
}

.dc-auth-form {
    display: grid;
    gap: 16px;
    padding: 24px 30px 28px;
}

.dc-auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dc-auth-field {
    min-width: 0;
}

.dc-auth-field.is-wide {
    grid-column: 1 / -1;
}

.dc-auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #34445c;
    font-size: 10px;
    font-weight: 800;
}

.dc-auth-field input {
    width: 100%;
    height: 43px;
    border: 1px solid #ccd6e3;
    border-radius: 10px;
    background: #fff;
    color: #26364d;
    padding: 0 12px;
    font-size: 12px;
    outline: none;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.dc-auth-field input:focus {
    border-color: #8faee8;
    box-shadow: 0 0 0 3px rgba(15, 75, 196, .09);
}

.dc-auth-field input::placeholder {
    color: #a1adbd;
}

.dc-auth-field small {
    display: block;
    margin-top: 5px;
    color: var(--dc-auth-muted);
    font-size: 8px;
    line-height: 1.45;
}

.dc-auth-password {
    position: relative;
}

.dc-auth-password input {
    padding-right: 42px;
}

.dc-auth-password button {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #7d8ba0;
    cursor: pointer;
}

.dc-auth-password button:hover {
    background: #eef3f9;
    color: var(--dc-auth-primary);
}

.dc-auth-password svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.dc-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #5f6f84;
    font-size: 10px;
    cursor: pointer;
}

.dc-auth-check input {
    width: 15px;
    height: 15px;
    accent-color: var(--dc-auth-primary);
}

.dc-auth-link {
    color: #52627a;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.dc-auth-link:hover {
    color: var(--dc-auth-primary);
}

.dc-auth-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 10px;
    background: var(--dc-auth-primary);
    color: #fff;
    padding: 0 15px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 75, 196, .18);
}

.dc-auth-button:hover {
    background: #0d42ae;
}

.dc-auth-button.is-secondary {
    border: 1px solid var(--dc-auth-border);
    background: #fff;
    color: #52627a;
    box-shadow: none;
}

.dc-auth-button.is-secondary:hover {
    background: #f5f7fa;
}

.dc-auth-button:disabled {
    opacity: .6;
    cursor: wait;
}

.dc-auth-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.dc-auth-alert {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    margin: 18px 30px 0;
    border: 1px solid;
    border-radius: 10px;
    padding: 10px;
}

.dc-auth-alert.is-success {
    border-color: #bfe5d1;
    background: #effaf4;
    color: var(--dc-auth-success);
}

.dc-auth-alert.is-danger {
    border-color: #efcaca;
    background: #fff2f2;
    color: var(--dc-auth-danger);
}

.dc-auth-alert > span {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .75);
}

.dc-auth-alert svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.dc-auth-alert strong {
    display: block;
    font-size: 9px;
}

.dc-auth-alert p {
    margin: 3px 0 0;
    font-size: 8px;
    line-height: 1.45;
}

.dc-auth-error {
    margin: 5px 0 0;
    padding-left: 15px;
    color: var(--dc-auth-danger);
    font-size: 8px;
}

.dc-auth-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-top: 1px solid #e7ebf1;
    background: #fafbfd;
    padding: 14px 20px;
    color: var(--dc-auth-muted);
    font-size: 9px;
}

.dc-auth-card-footer a {
    color: var(--dc-auth-primary);
    font-weight: 800;
    text-decoration: none;
}

.dc-auth-card-footer a:hover {
    text-decoration: underline;
}

.dc-auth-message {
    margin: 0;
    color: var(--dc-auth-muted);
    font-size: 11px;
    line-height: 1.65;
}

.dc-auth-center-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 14px;
    background: #eef4ff;
    color: var(--dc-auth-primary);
}

.dc-auth-center-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-auth-center-copy {
    text-align: center;
}

.dc-auth-center-copy strong {
    display: block;
    margin-top: 12px;
    color: var(--dc-auth-text);
    font-size: 13px;
}

.dc-auth-center-copy p {
    margin: 6px 0 0;
    color: var(--dc-auth-muted);
    font-size: 10px;
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 1080px) {
    .dc-auth-grid {
        grid-template-columns: 1fr;
    }

    .dc-auth-brand-panel {
        display: none;
    }

    .dc-auth-mobile-brand {
        display: flex;
    }

    .dc-auth-content {
        min-height: 100vh;
    }
}

@media (max-width: 640px) {
    .dc-auth-content {
        align-items: flex-start;
        padding: 20px 14px;
    }

    .dc-auth-card {
        border-radius: 17px;
    }

    .dc-auth-card-header {
        padding: 22px 20px 0;
    }

    .dc-auth-card-header h2 {
        font-size: 23px;
    }

    .dc-auth-form {
        padding: 20px;
    }

    .dc-auth-form-grid {
        grid-template-columns: 1fr;
    }

    .dc-auth-field.is-wide {
        grid-column: auto;
    }

    .dc-auth-row,
    .dc-auth-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dc-auth-button {
        width: 100%;
    }

    .dc-auth-alert {
        margin-right: 20px;
        margin-left: 20px;
    }

    .dc-auth-card-footer {
        flex-wrap: wrap;
    }
}