/* =====================================================
   CUENTA EDUCATIC - LOGIN, REGISTRO Y DASHBOARD
   Interfaz publica ligera y consistente con el portal.
===================================================== */
.account-page {
    --account-blue: #0d6efd;
    --account-blue-dark: #0958c9;
    --account-text: #172033;
    --account-muted: #6f7b8c;
    --account-border: #e4eaf2;
    --account-soft: #f6f9fd;
    --account-orange: #f57c00;
    --account-green: #198754;
}

.account-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .78fr);
    min-height: 610px;
    overflow: hidden;
    border: 1px solid var(--account-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .08);
}

.account-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: clamp(34px, 5vw, 64px);
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 16%, rgba(96, 165, 250, .38), transparent 31%),
        radial-gradient(circle at 20% 85%, rgba(14, 165, 233, .20), transparent 32%),
        linear-gradient(135deg, #082d68 0%, #0d6efd 55%, #2786ff 100%);
    color: #fff;
}

.account-intro::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -105px;
    bottom: -110px;
    border: 42px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    pointer-events: none;
}

.account-brand-pill {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 7px 11px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: .73rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.account-intro h1 {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 0 15px;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.account-intro > p {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: .98rem;
    line-height: 1.7;
}

.account-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 620px;
    margin-top: 28px;
}

.account-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(8px);
}

.account-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    font-size: .9rem;
}

.account-benefit strong {
    display: block;
    margin-bottom: 2px;
    font-size: .78rem;
}

.account-benefit small {
    display: block;
    color: rgba(255, 255, 255, .72);
    font-size: .67rem;
    line-height: 1.45;
}

.account-form-panel {
    display: flex;
    align-items: center;
    padding: clamp(28px, 4vw, 48px);
    background: #fff;
}

.account-form-wrap {
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
}

.account-form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #eaf2ff;
    color: var(--account-blue);
    font-size: 1.2rem;
}

.account-form-title {
    margin: 0;
    color: var(--account-text);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.account-form-subtitle {
    margin: 7px 0 22px;
    color: var(--account-muted);
    font-size: .82rem;
    line-height: 1.55;
}

.account-field {
    margin-bottom: 15px;
}

.account-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #344055;
    font-size: .76rem;
    font-weight: 800;
}

.account-field .form-control {
    min-height: 47px;
    border-color: #dce3ed;
    border-radius: 11px;
    font-size: .86rem;
    box-shadow: none;
}

.account-field .form-control:focus {
    border-color: #8ab8ff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .09);
}

.account-field .form-control.is-invalid {
    border-color: #dc3545;
}

.account-error {
    margin-top: 5px;
    color: #c43240;
    font-size: .69rem;
}

.account-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 3px 0 18px;
    font-size: .73rem;
}

.account-options a,
.account-switch a {
    color: var(--account-blue);
    font-weight: 750;
    text-decoration: none;
}

.account-options a:hover,
.account-switch a:hover {
    text-decoration: underline;
}

.account-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 49px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1477ff, #075ed7);
    color: #fff;
    font-weight: 850;
    box-shadow: 0 8px 20px rgba(13, 110, 253, .22);
    transition: transform .16s ease, box-shadow .16s ease;
}

.account-primary-btn:hover {
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 11px 25px rgba(13, 110, 253, .30);
}

.account-switch {
    padding-top: 17px;
    margin-top: 19px;
    border-top: 1px solid #edf0f4;
    color: var(--account-muted);
    font-size: .76rem;
    text-align: center;
}

.account-switch .btn {
    width: 100%;
    margin-top: 9px;
    border-radius: 11px;
    font-size: .79rem;
    font-weight: 750;
}

/* =====================================================
   DASHBOARD
===================================================== */
.dashboard-page {
    --dashboard-blue: #0d6efd;
    --dashboard-text: #172033;
    --dashboard-muted: #6e7b8d;
    --dashboard-border: #e4eaf2;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 4vw, 42px);
    margin-bottom: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .20), transparent 26%),
        linear-gradient(135deg, #0b397e 0%, #0d6efd 56%, #338cff 100%);
    color: #fff;
    box-shadow: 0 14px 38px rgba(13, 72, 156, .17);
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    bottom: -105px;
    border: 35px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.dashboard-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    font-size: .7rem;
    font-weight: 800;
}

.dashboard-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 0 9px;
    font-size: clamp(1.7rem, 3.6vw, 2.65rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.dashboard-hero p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .81);
    font-size: .9rem;
    line-height: 1.65;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.dashboard-action {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 164px;
    padding: 19px;
    overflow: hidden;
    border: 1px solid var(--dashboard-border);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 7px 24px rgba(15, 23, 42, .045);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.dashboard-action:hover {
    transform: translateY(-3px);
    border-color: #cbd9ed;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .09);
}

.dashboard-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: #eaf2ff;
    color: var(--dashboard-blue);
    font-size: 1rem;
}

.dashboard-action.free .dashboard-action-icon {
    background: #fff0e3;
    color: #ed7600;
}

.dashboard-action.coupon .dashboard-action-icon {
    background: #e8f7ef;
    color: #198754;
}

.dashboard-action.news .dashboard-action-icon {
    background: #eaf2ff;
    color: #0d6efd;
}

.dashboard-action strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dashboard-text);
    font-size: .91rem;
    font-weight: 850;
}

.dashboard-action p {
    margin: 0 0 12px;
    color: var(--dashboard-muted);
    font-size: .73rem;
    line-height: 1.5;
}

.dashboard-action small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    color: var(--dashboard-blue);
    font-size: .7rem;
    font-weight: 800;
}

.dashboard-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 18px;
}

.dashboard-panel {
    padding: 22px;
    border: 1px solid var(--dashboard-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(15, 23, 42, .04);
}

.dashboard-panel h2 {
    margin: 0 0 9px;
    color: var(--dashboard-text);
    font-size: 1rem;
    font-weight: 850;
}

.dashboard-panel p {
    margin: 0;
    color: var(--dashboard-muted);
    font-size: .77rem;
    line-height: 1.6;
}

.dashboard-community-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 16px;
}

.dashboard-community-links .btn {
    min-height: 42px;
    border-radius: 10px;
    font-size: .73rem;
    font-weight: 800;
}

.dashboard-profile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    color: #3e4b5f;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 750;
}

.dashboard-profile-link + .dashboard-profile-link {
    border-top: 1px solid #edf0f4;
}

.dashboard-profile-link:hover {
    color: var(--dashboard-blue);
}

body.dark-mode .account-shell,
body.dark-mode .account-form-panel,
body.dark-mode .dashboard-action,
body.dark-mode .dashboard-panel {
    background: #1f1f1f;
    border-color: #333;
}

body.dark-mode .account-form-title,
body.dark-mode .account-field label,
body.dark-mode .dashboard-action strong,
body.dark-mode .dashboard-panel h2,
body.dark-mode .dashboard-profile-link {
    color: #f1f3f5;
}

body.dark-mode .account-form-subtitle,
body.dark-mode .dashboard-action p,
body.dark-mode .dashboard-panel p {
    color: #b5bdc8;
}

@media (max-width: 991.98px) {
    .account-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .account-intro {
        min-height: auto;
        padding: 32px;
    }

    .account-intro h1 {
        max-width: 760px;
        font-size: clamp(1.65rem, 6vw, 2.45rem);
    }

    .account-form-panel {
        padding: 32px;
    }

    .dashboard-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .account-shell {
        border-radius: 18px;
    }

    .account-intro {
        padding: 25px 22px;
    }

    .account-benefits {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .account-form-panel {
        padding: 26px 21px;
    }

    .account-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-hero {
        padding: 26px 22px;
        border-radius: 18px;
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .dashboard-action {
        min-height: 0;
    }

    .dashboard-community-links {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-primary-btn,
    .dashboard-action {
        transition: none !important;
    }
}
