/*
|--------------------------------------------------------------------------
| Login de Dominican Mobility Manager
|--------------------------------------------------------------------------
*/

:root {
    --dm-navy: #073a6b;
    --dm-blue: #0b5f9f;
    --dm-blue-light: #e8f3fb;
    --dm-yellow: #f2c94c;
    --dm-text: #17212d;
    --dm-muted: #687589;
    --dm-border: #d7e0e8;
    --dm-background: #f3f6f9;
    --dm-danger: #a4384c;
}

* {
    box-sizing: border-box;
}

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

body {
    color: var(--dm-text);
    background:
        radial-gradient(
            circle at 50% 0,
            #ffffff 0,
            var(--dm-background) 52%
        );
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

button,
input {
    font: inherit;
}

.dm-login-page {
    min-height: 100vh;
}

.dm-login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 40px 16px 32px;
}

.dm-login-card {
    width: min(860px, 100%);
    padding: 52px 48px 44px;
    border: 1px solid var(--dm-border);
    border-radius: 36px;
    background: rgba(255, 255, 255, .98);
    box-shadow:
        0 28px 65px rgba(27, 48, 69, .12),
        0 3px 8px rgba(27, 48, 69, .04);
}

.dm-login-brand {
    text-align: center;
}

.dm-login-logo {
    display: block;
    width: min(100%, 340px);
    height: auto;
    max-height: 175px;
    margin: 0 auto;
    object-fit: contain;
}

.dm-login-brand h1 {
    margin: 27px 0 0;
    color: var(--dm-text);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 850;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.dm-login-brand p {
    margin: 10px 0 0;
    color: var(--dm-muted);
    font-size: 16px;
    line-height: 1.55;
}

.dm-login-form-container {
    width: 100%;
    max-width: 650px;
    margin: 42px auto 0;
}

.dm-login-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
}

.dm-login-alert > span {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 900;
    place-items: center;
}

.dm-login-alert strong {
    display: block;
    margin: 1px 0 3px;
}

.dm-login-alert p {
    margin: 0;
}

.dm-alert-success {
    color: #087553;
    border-color: #b8e1d4;
    background: #effaf6;
}

.dm-alert-success > span {
    background: #20a679;
}

.dm-alert-error {
    color: var(--dm-danger);
    border-color: #efc4cc;
    background: #fff3f5;
}

.dm-alert-error > span {
    background: #d3566e;
}

.dm-login-form {
    width: 100%;
}

.dm-field + .dm-field {
    margin-top: 24px;
}

.dm-field label {
    display: block;
    margin: 0 0 9px;
    color: var(--dm-text);
    font-size: 15px;
    font-weight: 800;
}

.dm-input-wrapper {
    position: relative;
}

.dm-input-wrapper input {
    width: 100%;
    height: 62px;
    padding: 0 18px;
    color: #243447;
    border: 1.5px solid #b9c8d5;
    border-radius: 17px;
    outline: none;
    background: #ffffff;
    font-size: 16px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.dm-input-wrapper input::placeholder {
    color: #87919c;
}

.dm-input-wrapper input:hover {
    border-color: #7fa4c2;
}

.dm-input-wrapper input:focus {
    border-color: var(--dm-blue);
    background: #ffffff;
    box-shadow:
        0 0 0 6px rgba(11, 95, 159, .11),
        inset 0 -3px 0 rgba(242, 201, 76, .7);
}

.dm-password-wrapper input {
    padding-right: 60px;
}

.dm-password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #6d7d8d;
    border: 0;
    border-radius: 11px;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    place-items: center;
}

.dm-password-toggle:hover {
    color: var(--dm-blue);
    background: var(--dm-blue-light);
}

.dm-password-toggle:focus-visible {
    outline: 3px solid rgba(11, 95, 159, .2);
}

.dm-password-toggle svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.dm-field-error {
    display: block;
    margin-top: 7px;
    color: var(--dm-danger);
    font-size: 12px;
    font-weight: 650;
}

.dm-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0 27px;
}

.dm-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #536273;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.dm-remember input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--dm-blue);
}

.dm-forgot-password {
    color: var(--dm-blue);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.dm-forgot-password:hover {
    text-decoration: underline;
}

.dm-login-button {
    width: 100%;
    min-height: 62px;
    color: #ffffff;
    border: 0;
    border-radius: 17px;
    background:
        linear-gradient(
            135deg,
            var(--dm-navy),
            var(--dm-blue)
        );
    box-shadow: 0 15px 28px rgba(7, 58, 107, .22);
    font-size: 16px;
    font-weight: 850;
    letter-spacing: .01em;
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.dm-login-button::after {
    margin-left: 10px;
    color: var(--dm-yellow);
    content: "→";
    font-size: 21px;
}

.dm-login-button:hover {
    box-shadow: 0 18px 32px rgba(7, 58, 107, .28);
    transform: translateY(-1px);
}

.dm-login-button:active {
    box-shadow: 0 10px 20px rgba(7, 58, 107, .2);
    transform: translateY(0);
}

.dm-login-button:focus-visible {
    outline: 4px solid rgba(242, 201, 76, .45);
    outline-offset: 3px;
}

.dm-security-note {
    margin: 21px auto 0;
    color: #7b8795;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

.dm-developer-brand {
    display: flex;
    min-height: 75px;
    align-items: center;
    justify-content: center;
    margin-top: 26px;
}

.dm-developer-brand img {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 54px;
    object-fit: contain;
}

@media (max-width: 700px) {
    .dm-login-wrapper {
        justify-content: flex-start;
        padding: 18px 12px 24px;
    }

    .dm-login-card {
        padding: 34px 22px 30px;
        border-radius: 27px;
    }

    .dm-login-logo {
        width: min(100%, 275px);
        max-height: 140px;
    }

    .dm-login-brand h1 {
        margin-top: 21px;
        font-size: 27px;
    }

    .dm-login-brand p {
        font-size: 14px;
    }

    .dm-login-form-container {
        margin-top: 31px;
    }

    .dm-input-wrapper input,
    .dm-login-button {
        min-height: 57px;
        height: 57px;
        border-radius: 15px;
    }

    .dm-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .dm-developer-brand {
        min-height: 62px;
        margin-top: 19px;
    }

    .dm-developer-brand img {
        max-width: 125px;
        max-height: 46px;
    }
}

@media (max-width: 390px) {
    .dm-login-card {
        padding-right: 17px;
        padding-left: 17px;
        border-radius: 23px;
    }

    .dm-login-brand h1 {
        font-size: 24px;
    }

    .dm-field label {
        font-size: 14px;
    }

    .dm-input-wrapper input {
        font-size: 15px;
    }
}

/* DM_COMPACT_LOGIN_START */

/* Diseño compacto, delicado y profesional */
.dm-login-wrapper {
    padding: 28px 16px 22px;
}

.dm-login-card {
    width: min(590px, 100%);
    padding: 34px 42px 30px;
    border-radius: 23px;
    box-shadow:
        0 18px 45px rgba(27, 48, 69, .09),
        0 2px 6px rgba(27, 48, 69, .03);
}

.dm-login-logo {
    width: min(100%, 235px);
    max-height: 112px;
}

.dm-login-brand h1 {
    margin-top: 18px;
    font-size: 27px;
    font-weight: 800;
}

.dm-login-brand p {
    margin-top: 7px;
    font-size: 13px;
}

.dm-login-form-container {
    max-width: 480px;
    margin-top: 28px;
}

.dm-field + .dm-field {
    margin-top: 18px;
}

.dm-field label {
    margin-bottom: 7px;
    font-size: 13px;
}

.dm-input-wrapper input {
    height: 52px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 14px;
}

.dm-password-wrapper input {
    padding-right: 53px;
}

.dm-password-toggle {
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.dm-password-toggle svg {
    width: 20px;
    height: 20px;
}

.dm-form-options {
    margin: 16px 0 20px;
}

.dm-remember,
.dm-forgot-password {
    font-size: 12px;
}

.dm-remember input {
    width: 16px;
    height: 16px;
}

.dm-login-button {
    min-height: 52px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(7, 58, 107, .18);
}

.dm-login-button::after {
    margin-left: 7px;
    font-size: 18px;
}

.dm-security-note {
    margin-top: 16px;
    font-size: 10px;
}

.dm-developer-brand {
    min-height: 48px;
    margin-top: 16px;
}

.dm-developer-brand img {
    max-width: 100px;
    max-height: 37px;
}

@media (max-width: 700px) {
    .dm-login-wrapper {
        padding: 14px 10px 18px;
    }

    .dm-login-card {
        padding: 28px 21px 25px;
        border-radius: 19px;
    }

    .dm-login-logo {
        width: min(100%, 205px);
        max-height: 98px;
    }

    .dm-login-brand h1 {
        margin-top: 15px;
        font-size: 24px;
    }

    .dm-login-form-container {
        margin-top: 24px;
    }

    .dm-input-wrapper input,
    .dm-login-button {
        min-height: 50px;
        height: 50px;
        border-radius: 11px;
    }

    .dm-form-options {
        gap: 10px;
    }

    .dm-developer-brand {
        margin-top: 13px;
    }

    .dm-developer-brand img {
        max-width: 90px;
        max-height: 34px;
    }
}

/* DM_COMPACT_LOGIN_END */

/* DM_LOGIN_REFINEMENTS_START */

/* Logo principal ligeramente más grande */
.dm-login-logo {
    width: min(100%, 470px);
    max-height: 248px;
}

/* Un solo icono de contraseña, centrado */
.dm-password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-password-toggle .dm-password-icon {
    display: block;
    width: 21px;
    height: 21px;
}

/* Logo de Ideas Digital RD más visible */
.dm-developer-brand img {
    max-width: 170px;
    max-height: 52px;
}

@media (max-width: 700px) {
    .dm-login-logo {
        width: min(100%, 225px);
        max-height: 200px;
    }

    .dm-developer-brand img {
        max-width: 120px;
        max-height: 45px;
    }
}

/* DM_LOGIN_REFINEMENTS_END */

/* DM_FINAL_LOGO_SIZE_START */

/* Logo principal: más grande sin verse exagerado */
.dm-login-logo {
    width: min(100%, 330px) !important;
    height: auto !important;
    max-height: 165px !important;
}

/* Logo de Ideas Digital RD: más claro y visible */
.dm-developer-brand {
    min-height: 75px !important;
    margin-top: 18px !important;
}

.dm-developer-brand img {
    width: auto !important;
    height: auto !important;
    max-width: 190px !important;
    max-height: 78px !important;
}

@media (max-width: 700px) {
    .dm-login-logo {
        width: min(100%, 275px) !important;
        max-height: 138px !important;
    }

    .dm-developer-brand {
        min-height: 65px !important;
    }

    .dm-developer-brand img {
        max-width: 165px !important;
        max-height: 68px !important;
    }
}

/* DM_FINAL_LOGO_SIZE_END */

/* DM_MOBILE_LOGO_FIX_START */

/*
|--------------------------------------------------------------------------
| Ajuste exclusivo para celulares
|--------------------------------------------------------------------------
*/
@media (max-width: 700px) {
    .dm-login-wrapper {
        padding-top: 10px !important;
    }

    .dm-login-card {
        padding-top: 18px !important;
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    .dm-login-logo {
        display: block !important;
        width: min(100%, 325px) !important;
        max-width: 325px !important;
        height: auto !important;
        max-height: 145px !important;
        margin: 0 auto -7px !important;
        object-fit: contain !important;
    }

    .dm-login-brand h1 {
        margin: 0 !important;
        font-size: 24px !important;
        line-height: 1.15 !important;
    }

    .dm-login-brand p {
        margin-top: 7px !important;
    }

    .dm-login-form-container {
        margin-top: 22px !important;
    }
}

@media (max-width: 390px) {
    .dm-login-logo {
        width: min(100%, 305px) !important;
        max-width: 305px !important;
        margin-bottom: -8px !important;
    }

    .dm-login-brand h1 {
        font-size: 23px !important;
    }
}

/* DM_MOBILE_LOGO_FIX_END */

/* DM_RESPONSIVE_FINAL_START */

/*
|--------------------------------------------------------------------------
| Login compacto para celulares y tabletas
|--------------------------------------------------------------------------
*/
@media screen and (max-width: 1100px) {
    body.dm-login-page .dm-login-wrapper {
        min-height: 100svh !important;
        justify-content: flex-start !important;
        padding: 16px 12px 20px !important;
    }

    body.dm-login-page .dm-login-card {
        width: min(560px, 100%) !important;
        padding: 22px 24px 24px !important;
        border-radius: 22px !important;
    }

    body.dm-login-page .dm-login-logo {
        display: block !important;
        width: min(100%, 310px) !important;
        max-width: 310px !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 auto 6px !important;
        position: static !important;
        left: auto !important;
        transform: none !important;
        object-fit: contain !important;
    }

    body.dm-login-page .dm-login-brand h1 {
        margin: 0 !important;
        font-size: 26px !important;
        line-height: 1.15 !important;
    }

    body.dm-login-page .dm-login-brand p {
        margin-top: 7px !important;
    }

    body.dm-login-page .dm-login-form-container {
        margin-top: 24px !important;
    }

    body.dm-login-page .dm-developer-brand {
        margin-top: 14px !important;
    }
}

@media screen and (max-width: 480px) {
    body.dm-login-page .dm-login-wrapper {
        padding: 10px 9px 16px !important;
    }

    body.dm-login-page .dm-login-card {
        padding: 18px 16px 20px !important;
        border-radius: 19px !important;
    }

    body.dm-login-page .dm-login-logo {
        width: min(100%, 285px) !important;
        max-width: 285px !important;
        margin-bottom: 5px !important;
    }

    body.dm-login-page .dm-login-brand h1 {
        font-size: 23px !important;
    }

    body.dm-login-page .dm-login-form-container {
        margin-top: 20px !important;
    }
}

/* DM_RESPONSIVE_FINAL_END */


/* DM_PUBLIC_REGISTRATION_STYLES_START */
.dm-register-access {
    align-items: center;
    background: #f3f7fb;
    border: 1px solid #dce7f1;
    border-radius: 12px;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
    padding: 11px 14px;
}

.dm-register-access span {
    color: #6a7687;
    font-size: 12px;
}

.dm-register-access a,
.dm-back-login {
    color: var(--dm-blue);
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.dm-register-access a:hover,
.dm-back-login:hover {
    text-decoration: underline;
}

body.dm-register-page .dm-login-wrapper {
    padding-top: 24px;
}

body.dm-register-page .dm-register-card {
    width: min(760px, 100%);
}

body.dm-register-page .dm-login-logo {
    width: min(100%, 285px) !important;
    max-height: 140px !important;
}

body.dm-register-page .dm-register-form-container {
    max-width: 650px;
    margin-top: 24px;
}

.dm-register-info {
    align-items: flex-start;
    background: #eef6fd;
    border: 1px solid #cee3f4;
    border-radius: 12px;
    color: #315e8b;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
}

.dm-register-info > span {
    align-items: center;
    background: var(--dm-blue);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 23px;
    font-size: 12px;
    font-weight: 900;
    height: 23px;
    justify-content: center;
}

.dm-register-info p {
    font-size: 12px;
    line-height: 1.55;
    margin: 1px 0 0;
}

.dm-register-grid {
    display: grid;
    gap: 17px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dm-register-grid .dm-field + .dm-field {
    margin-top: 0;
}

.dm-register-field-wide {
    grid-column: 1 / -1;
}

.dm-register-field-wide label small {
    color: #7b8795;
    font-size: 11px;
    font-weight: 650;
}

.dm-register-page .dm-password-toggle {
    color: var(--dm-blue);
    font-size: 11px;
    font-weight: 850;
    width: auto;
    padding: 0 8px;
}

.dm-register-password-note {
    color: #7b8795;
    font-size: 11px;
    line-height: 1.5;
    margin: 14px 0 0;
}

.dm-register-actions {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(220px, 1fr);
    margin-top: 20px;
}

.dm-register-actions .dm-back-login {
    align-items: center;
    display: inline-flex;
    min-height: 52px;
    padding: 0 10px;
}

@media (max-width: 700px) {
    body.dm-register-page .dm-login-card {
        padding: 20px 18px 22px !important;
    }

    body.dm-register-page .dm-login-logo {
        width: min(100%, 245px) !important;
    }

    .dm-register-grid,
    .dm-register-actions {
        grid-template-columns: 1fr;
    }

    .dm-register-field-wide {
        grid-column: auto;
    }

    .dm-register-actions .dm-back-login {
        justify-content: center;
        order: 2;
    }
}
/* DM_PUBLIC_REGISTRATION_STYLES_END */