/*
=================================================
DC Framework - Auth Moderno
Archivo: assets/css/dc-auth-modern.css
=================================================
*/

.dc-auth-shell {
    position: relative;
    padding: 120px 20px 80px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .08), transparent 34%),
        radial-gradient(circle at top right, rgba(14, 165, 233, .08), transparent 28%),
        #f8fafc;
    min-height: 82vh;
}

.dc-auth-layout {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, 1fr);
    gap: 28px;
    align-items: stretch;
}

.dc-auth-layout.is-register {
    grid-template-columns: minmax(0, .9fr) minmax(460px, 1fr);
}

.dc-auth-layout.is-lost {
    grid-template-columns: minmax(0, .9fr) minmax(420px, .9fr);
}

.dc-auth-visual,
.dc-auth-card,
.dc-auth-panel {
    border: 1px solid #dbe3ef;
    background: rgba(255,255,255,.94);
    border-radius: 28px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .08);
    backdrop-filter: blur(14px);
}

.dc-auth-visual {
    position: relative;
    padding: 38px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .22), transparent 34%),
        linear-gradient(135deg, #ffffff, #eff6ff);
}

.dc-auth-visual::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    bottom: -80px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .10);
}

.dc-auth-badge,
.dc-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 12px;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.dc-auth-visual h2 {
    position: relative;
    margin: 22px 0 14px;
    color: #0f172a;
    font-size: clamp(36px, 4vw, 60px);
    line-height: 1.02;
    letter-spacing: -2px;
    font-weight: 950;
    max-width: 620px;
}

.dc-auth-visual p {
    position: relative;
    color: #52637a;
    font-size: 17px;
    line-height: 1.75;
    max-width: 560px;
}

.dc-auth-benefits,
.dc-auth-path {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.dc-auth-benefits div,
.dc-auth-path div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border-radius: 18px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(191,219,254,.85);
}

.dc-auth-benefits span,
.dc-auth-path span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 950;
}

.dc-auth-benefits strong,
.dc-auth-path strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

.dc-auth-benefits small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.dc-auth-card {
    padding: 34px;
}

.dc-auth-panel {
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 34px;
}

.dc-auth-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.dc-auth-card-header h1 {
    margin: 18px 0 10px;
    color: #0f172a;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -1.4px;
    font-weight: 950;
}

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

.dc-auth-google-btn {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 950;
    cursor: pointer;
    transition: .2s ease;
}

.dc-auth-google-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.dc-auth-google-btn.is-disabled {
    opacity: .72;
    cursor: not-allowed;
}

.dc-auth-google-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    color: #dc2626;
    font-weight: 950;
}

.dc-auth-google-btn em {
    margin-left: auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-style: normal;
}

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

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

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

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

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

.dc-auth-form input,
.dc-auth-form select {
    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-form input:focus,
.dc-auth-form select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .11);
}

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

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

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

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

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

.dc-auth-primary-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2563eb;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .22);
    transition: .2s ease;
}

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

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

.dc-auth-password-help {
    padding: 12px;
    border-radius: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.dc-auth-notice {
    padding: 14px 15px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 800;
    font-size: 14px;
}

.dc-auth-notice-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.dc-auth-notice-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.dc-auth-notice-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Ocultar títulos duplicados de algunas plantillas */
.dc-page-header:has(+ .dc-auth-shell),
.entry-header:has(+ .dc-auth-shell) {
    display: none;
}

/* Responsive */
@media (max-width: 980px) {
    .dc-auth-layout,
    .dc-auth-layout.is-register,
    .dc-auth-layout.is-lost {
        grid-template-columns: 1fr;
    }

    .dc-auth-shell {
        padding-top: 100px;
    }

    .dc-auth-visual {
        padding: 30px;
    }

    .dc-auth-visual h2 {
        font-size: 38px;
    }
}

@media (max-width: 640px) {
    .dc-auth-shell {
        padding: 86px 12px 48px;
    }

    .dc-auth-card,
    .dc-auth-visual,
    .dc-auth-panel {
        border-radius: 22px;
        padding: 22px;
    }

    .dc-auth-card-header h1 {
        font-size: 32px;
    }

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

/*
==========================================
DC Framework - Panel Access Screen
Pegar al final de assets/css/dc-auth-modern.css
==========================================
*/

.dc-panel-access-shell {
    min-height: calc(100vh - 90px);
}

.dc-panel-access-layout {
    align-items: center;
}

.dc-panel-access-card {
    align-self: center;
}

.dc-panel-access-actions {
    display: grid;
    gap: 12px;
}

.dc-auth-secondary-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a !important;
    text-decoration: none;
    font-weight: 950;
    transition: .2s ease;
}

.dc-auth-secondary-btn:hover {
    background: #f8fafc;
    border-color: #93c5fd;
    color: #1d4ed8 !important;
}

.dc-auth-muted-link {
    width: fit-content;
    margin: 4px auto 0;
    color: #64748b;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
}

.dc-auth-muted-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.dc-panel-missing-card {
    max-width: 760px;
    margin: 60px auto;
}

.dc-panel-missing-card code {
    display: block;
    padding: 14px;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .dc-panel-access-shell {
        min-height: auto;
    }
}

/*
==========================================
DC Auth - Password Toggle
Pegar al final de assets/css/dc-auth-modern.css
==========================================
*/

.dc-password-field-wrap {
    position: relative;
    display: block;
}

.dc-password-field-wrap input {
    padding-right: 48px !important;
}

.dc-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.dc-password-toggle:hover {
    background: #eff6ff;
    color: #2563eb;
}

.dc-password-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-password-toggle .dc-eye-off {
    display: none;
}

.dc-password-toggle.is-visible .dc-eye {
    display: none;
}

.dc-password-toggle.is-visible .dc-eye-off {
    display: block;
}

/* También aplica al modal */
.dc-auth-modal .dc-password-field-wrap input {
    padding-right: 48px !important;
}

.dc-auth-modal .dc-password-toggle {
    right: 9px;
}

body.dark .dc-password-toggle,
html.dc-dark-mode .dc-password-toggle,
body.dc-dark-mode .dc-password-toggle {
    color: #94a3b8;
}

body.dark .dc-password-toggle:hover,
html.dc-dark-mode .dc-password-toggle:hover,
body.dc-dark-mode .dc-password-toggle:hover {
    background: rgba(37,99,235,.16);
    color: #bfdbfe;
}
