/*
=================================================
DC Framework - Login Modal Elegant Update
Archivo: assets/css/dc-auth-modal.css
Reemplaza el archivo anterior completo.
=================================================
*/

.dc-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .32s cubic-bezier(.22, 1, .36, 1),
        visibility .32s cubic-bezier(.22, 1, .36, 1);
}

.dc-auth-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dc-auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .20), transparent 36%),
        rgba(15, 23, 42, .62);
    backdrop-filter: blur(0);
    opacity: 0;
    transition:
        opacity .34s cubic-bezier(.22, 1, .36, 1),
        backdrop-filter .34s cubic-bezier(.22, 1, .36, 1);
}

.dc-auth-modal.is-open .dc-auth-modal-backdrop {
    opacity: 1;
    backdrop-filter: blur(14px);
}

.dc-auth-modal-dialog {
    position: relative;
    width: min(980px, 100%);
    max-height: calc(100vh - 44px);
    overflow: hidden;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 40px 100px rgba(15, 23, 42, .34);
    opacity: 0;
    transform: translateY(22px) scale(.965);
    transition:
        opacity .38s cubic-bezier(.22, 1, .36, 1),
        transform .38s cubic-bezier(.22, 1, .36, 1);
}

.dc-auth-modal.is-open .dc-auth-modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dc-auth-modal.is-closing {
    opacity: 0;
}

.dc-auth-modal.is-closing .dc-auth-modal-dialog {
    opacity: 0;
    transform: translateY(16px) scale(.975);
}

.dc-auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: rgba(255,255,255,.9);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .2s ease;
}

.dc-auth-modal-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
}

.dc-auth-modal-close span:first-child {
    transform: rotate(45deg);
}

.dc-auth-modal-close span:last-child {
    transform: rotate(-45deg);
}

.dc-auth-modal-close:hover {
    background: #f8fafc;
    transform: rotate(90deg);
}

.dc-auth-modal-grid {
    display: grid;
    grid-template-columns: .92fr 1fr;
    min-height: 620px;
}

.dc-auth-modal-side {
    position: relative;
    overflow: hidden;
    padding: 38px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .26), transparent 32%),
        linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #ffffff;
}

.dc-auth-modal-side::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -90px;
    bottom: -90px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
}

.dc-auth-modal-side::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: 90px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

.dc-auth-modal-badge {
    position: relative;
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #dbeafe;
    border: 1px solid rgba(255,255,255,.16);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.dc-auth-modal-side h2 {
    position: relative;
    margin: 22px 0 14px;
    max-width: 430px;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.02;
    letter-spacing: -1.8px;
    font-weight: 950;
}

.dc-auth-modal-side p {
    position: relative;
    max-width: 420px;
    color: #bfdbfe;
    font-size: 16px;
    line-height: 1.75;
}

.dc-auth-modal-points {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 32px;
}

.dc-auth-modal-points div {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border-radius: 17px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity .42s cubic-bezier(.22, 1, .36, 1),
        transform .42s cubic-bezier(.22, 1, .36, 1);
}

.dc-auth-modal.is-open .dc-auth-modal-points div {
    opacity: 1;
    transform: translateY(0);
}

.dc-auth-modal.is-open .dc-auth-modal-points div:nth-child(1) {
    transition-delay: .08s;
}

.dc-auth-modal.is-open .dc-auth-modal-points div:nth-child(2) {
    transition-delay: .14s;
}

.dc-auth-modal.is-open .dc-auth-modal-points div:nth-child(3) {
    transition-delay: .20s;
}

.dc-auth-modal-points span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}

.dc-auth-modal-points strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
}

.dc-auth-modal-form-wrap {
    padding: 42px;
    overflow-y: auto;
}

.dc-auth-modal-header {
    text-align: center;
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity .38s cubic-bezier(.22, 1, .36, 1),
        transform .38s cubic-bezier(.22, 1, .36, 1);
}

.dc-auth-modal.is-open .dc-auth-modal-header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .08s;
}

.dc-auth-modal-header > span {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.dc-auth-modal-header h3 {
    margin: 16px 0 8px;
    color: #0f172a;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -1.3px;
    font-weight: 950;
}

.dc-auth-modal-header p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

.dc-auth-modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .35px;
}

.dc-auth-modal-divider::before,
.dc-auth-modal-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e2e8f0;
}

.dc-auth-modal-form,
.dc-auth-modal .dc-auth-google-btn,
.dc-auth-modal-divider,
.dc-auth-modal-footer {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity .40s cubic-bezier(.22, 1, .36, 1),
        transform .40s cubic-bezier(.22, 1, .36, 1);
}

.dc-auth-modal.is-open .dc-auth-modal .dc-auth-google-btn,
.dc-auth-modal.is-open .dc-auth-google-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .12s;
}

.dc-auth-modal.is-open .dc-auth-modal-divider {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .16s;
}

.dc-auth-modal.is-open .dc-auth-modal-form {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .20s;
}

.dc-auth-modal.is-open .dc-auth-modal-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .24s;
}

.dc-auth-modal-form {
    display: grid;
    gap: 16px;
}

.dc-auth-modal-form label {
    display: grid;
    gap: 8px;
}

.dc-auth-modal-form label span {
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

.dc-auth-modal-form input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dc-auth-modal-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .11);
}

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

.dc-auth-modal-check {
    display: inline-flex !important;
    align-items: center;
    gap: 8px !important;
}

.dc-auth-modal-check input {
    width: 16px !important;
    height: 16px !important;
    min-height: 0 !important;
}

.dc-auth-modal-row a,
.dc-auth-modal-footer a {
    color: #2563eb;
    font-weight: 950;
    text-decoration: none;
}

.dc-auth-modal-row a:hover,
.dc-auth-modal-footer a:hover {
    text-decoration: underline;
}

.dc-auth-modal-submit {
    width: 100%;
    min-height: 48px;
    border: 1px solid #2563eb;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .22);
    transition: .2s ease;
}

.dc-auth-modal-submit:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.dc-auth-modal-footer {
    margin: 22px 0 0;
    text-align: center;
    color: #64748b;
}

body.dc-auth-modal-open {
    overflow: hidden;
}

.dc-auth-modal .dc-auth-google-btn {
    width: 100%;
}

/* Botón Comenzar */
.dc-auth-start-link,
a.dc-auth-start-link,
.dc-home-nav a[href*="registrarse"],
.dc-navbar a[href*="registrarse"] {
    cursor: pointer;
}

/* Dark mode */
body.dark .dc-auth-modal-dialog,
html.dc-dark-mode .dc-auth-modal-dialog,
body.dc-dark-mode .dc-auth-modal-dialog {
    background: #0f172a;
    border-color: rgba(255,255,255,.10);
}

body.dark .dc-auth-modal-form-wrap,
html.dc-dark-mode .dc-auth-modal-form-wrap,
body.dc-dark-mode .dc-auth-modal-form-wrap {
    background: #0f172a;
}

body.dark .dc-auth-modal-header h3,
body.dark .dc-auth-modal-form label span,
html.dc-dark-mode .dc-auth-modal-header h3,
html.dc-dark-mode .dc-auth-modal-form label span,
body.dc-dark-mode .dc-auth-modal-header h3,
body.dc-dark-mode .dc-auth-modal-form label span {
    color: #f8fafc;
}

body.dark .dc-auth-modal-header p,
body.dark .dc-auth-modal-footer,
html.dc-dark-mode .dc-auth-modal-header p,
html.dc-dark-mode .dc-auth-modal-footer,
body.dc-dark-mode .dc-auth-modal-header p,
body.dc-dark-mode .dc-auth-modal-footer {
    color: #94a3b8;
}

body.dark .dc-auth-modal-form input,
html.dc-dark-mode .dc-auth-modal-form input,
body.dc-dark-mode .dc-auth-modal-form input {
    background: #111827;
    color: #f8fafc;
    border-color: rgba(255,255,255,.14);
}

/* Responsive */
@media (max-width: 920px) {
    .dc-auth-modal-dialog {
        width: min(620px, 100%);
    }

    .dc-auth-modal-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .dc-auth-modal-side {
        display: none;
    }

    .dc-auth-modal-form-wrap {
        padding: 34px;
    }
}

@media (max-width: 560px) {
    .dc-auth-modal {
        padding: 12px;
    }

    .dc-auth-modal-dialog {
        border-radius: 24px;
        max-height: calc(100vh - 24px);
    }

    .dc-auth-modal-form-wrap {
        padding: 26px 20px 22px;
    }

    .dc-auth-modal-close {
        top: 10px;
        right: 10px;
    }

    .dc-auth-modal-header h3 {
        font-size: 31px;
    }

    .dc-auth-modal-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
