/* ════════════════════════════════════════════════
   FeedsTube Auth Pages — Unified Stylesheet
   Registro + Login — Sincronizado con Home
   ════════════════════════════════════════════════ */

/* ── Page Setup: Cero Scroll ── */
html.auth-page,
html.auth-page body {
    height: 100vh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

html.auth-page body {
    padding-top: 55px !important;
    background: #f8f9fa !important;
    display: flex;
    flex-direction: column;
}

/* ── Main Container ── */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 48px;
    min-height: 0;
}

.auth-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    max-width: 1100px;
    width: 100%;
    align-items: center;
}

/* ══════════════════════════════════════
   LEFT COLUMN: Benefits — Imponente
   ══════════════════════════════════════ */
.auth-benefits {
    padding-right: 16px;
}

.auth-benefits h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -1.5px;
    color: #111827;
    margin-bottom: 10px;
}

.auth-benefits h1 .accent {
    color: #0056FF;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 1.02rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Benefit Cards — Anchas e Imponentes */
.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    transition: border-color .25s, transform .2s, box-shadow .25s;
    width: 100%;
}

.benefit-item:hover {
    border-color: #0056FF;
    transform: translateX(5px);
    box-shadow: 0 6px 24px rgba(0, 86, 255, .1);
}

.benefit-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(0, 86, 255, .08);
    color: #0056FF;
    font-size: 1.05rem;
}

.benefit-item strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1px;
}

.benefit-item span {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.3;
}

/* ══════════════════════════════════════
   RIGHT COLUMN: Auth Card
   ══════════════════════════════════════ */
.auth-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 26px 26px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .06);
}

.auth-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 3px;
}

.auth-card-sub {
    color: #9ca3af;
    font-size: 0.78rem;
    margin-bottom: 16px;
}

/* ── Google Button (Official Style) ── */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}

.btn-google:hover {
    background: #f7f8f8;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
}

/* ── Divider ── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 11px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 14px 0;
    gap: 10px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    color: #9ca3af;
    font-size: 0.7rem;
    white-space: nowrap;
}

/* ── Form Fields ── */
.auth-field {
    margin-bottom: 11px;
}

.auth-field label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 3px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.label-row label { margin-bottom: 0; }

.forgot-link {
    font-size: 0.68rem;
    color: #0056FF;
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover { text-decoration: underline; }

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.8rem;
}

.auth-input-wrap input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #111827;
    font-size: 0.84rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.auth-input-wrap input::placeholder {
    color: #d1d5db;
}

.auth-input-wrap input:focus {
    border-color: #0056FF;
    box-shadow: 0 0 0 3px rgba(0, 86, 255, .1);
    background: #fff;
}

/* ── Primary CTA Button ── */
.btn-auth-primary {
    width: 100%;
    padding: 11px;
    background: #0056FF;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.86rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(0, 86, 255, .25);
    margin-top: 4px;
    letter-spacing: .3px;
}

.btn-auth-primary:hover {
    background: #0043cc;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 86, 255, .35);
}

.btn-auth-primary:active {
    transform: scale(.98);
}

/* ── Switch & Guest Links ── */
.auth-switch {
    text-align: center;
    margin-top: 12px;
    color: #9ca3af;
    font-size: 0.78rem;
    margin-bottom: 0;
}

.auth-switch a {
    color: #0056FF;
    text-decoration: none;
    font-weight: 700;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-guest {
    text-align: center;
    margin-top: 6px;
}

.auth-guest a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 500;
    transition: color .2s;
}

.auth-guest a:hover {
    color: #6b7280;
    text-decoration: underline;
}

/* ── Forgot / Success Views ── */
.icon-circle {
    width: 52px;
    height: 52px;
    background: rgba(0, 86, 255, .08);
    color: #0056FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 14px;
}

.btn-back {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: #9ca3af;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
}

.btn-back:hover { color: #111827; }

.email-badge {
    display: inline-block;
    background: rgba(0, 86, 255, .08);
    color: #0056FF;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .84rem;
    margin: 10px 0;
}

.resend-row {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: .74rem;
    color: #9ca3af;
}

.resend-row a {
    color: #0056FF;
    text-decoration: none;
    font-weight: 700;
}

/* ── Utilities ── */
.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 860px) {
    html.auth-page,
    html.auth-page body {
        height: auto !important;
        overflow-y: auto !important;
    }
    .auth-split {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 16px 0;
    }
    .auth-benefits { text-align: center; padding-right: 0; }
    .auth-benefits h1 { font-size: 2rem; }
    .auth-subtitle { margin: 8px auto 16px; }
    .benefit-item:hover { transform: none; }
    .auth-card { max-width: 100%; }
}

@media (max-width: 480px) {
    .auth-main { padding: 12px; }
    .auth-card { padding: 20px 18px; }
}
