/**
 * Halaman masuk / daftar — mobile-first, mandiri (tidak bergantung sidebar desktop)
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.ch-auth-page {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: linear-gradient(165deg, #0f172a 0%, #1e3a8a 42%, #1d4ed8 100%);
    color: #0f172a;
}

.ch-auth-page .auth-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.ch-auth-page .auth-sidebar {
    display: none;
}

.ch-auth-page .auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.25rem 1rem 2rem;
    background: transparent;
}

.ch-auth-topbar {
    width: 100%;
    max-width: 440px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: #fff;
}

.ch-auth-topbar--simple {
    justify-content: flex-start;
}

.ch-auth-topbar-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background 0.2s ease;
}

.ch-auth-topbar-back:hover,
.ch-auth-topbar-back:focus {
    background: rgba(255, 255, 255, 0.24);
    color: #fff !important;
}

.ch-auth-topbar a:not(.ch-auth-topbar-back) {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.ch-auth-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    max-width: min(58%, 200px);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.ch-auth-brand-logo {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fff;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.ch-auth-brand-chip img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
}

.ch-auth-brand-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

@media (max-width: 380px) {
    .ch-auth-brand-logo {
        width: 30px;
        height: 30px;
        padding: 3px;
    }
    .ch-auth-brand-chip {
        font-size: 0.75rem;
        max-width: 54%;
    }
}

.ch-auth-card-shell {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem 1.35rem 1.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ch-auth-hero-line {
    text-align: center;
    margin-bottom: 1.25rem;
}

.ch-auth-hero-line .eyebrow {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.ch-auth-hero-line h1 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.ch-auth-hero-line p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.ch-auth-features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.ch-auth-feature {
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.55rem 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #475569;
}

.ch-auth-feature i {
    display: block;
    font-size: 1rem;
    color: #1d4ed8;
    margin-bottom: 0.2rem;
}

.ch-auth-page .btn-google {
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.ch-auth-page .btn-premium {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border: none;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.35);
}

.ch-auth-page .auth-manual-box {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 1rem;
    background: #f8fafc;
}

.ch-auth-page .auth-manual-box summary {
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    list-style: none;
    color: #0f172a;
}

.ch-auth-page .auth-manual-inner {
    padding: 0 1rem 1rem;
    background: #fff;
}

.ch-auth-page .form-floating > .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    min-height: 52px;
}

.ch-auth-new-box {
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 1rem;
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: #475569;
}

.ch-auth-new-box .btn {
    border-radius: 12px;
    font-weight: 700;
}

.ch-auth-foot-links {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.82rem;
}

.ch-auth-foot-links a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

/* Desktop: split layout */
@media (min-width: 992px) {
    .ch-auth-page .auth-wrapper {
        flex-direction: row;
    }
    .ch-auth-page .auth-sidebar {
        display: flex;
        flex: 0 0 44%;
        max-width: 44%;
        flex-direction: column;
        justify-content: center;
        padding: 3rem;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(15, 23, 42, 0.92)),
            url('../img/rapat.jpeg') center/cover no-repeat;
        color: #fff;
    }
    .ch-auth-page .auth-main {
        flex: 1;
        justify-content: center;
        padding: 2.5rem;
        background: #f8fafc;
    }
    .ch-auth-topbar {
        display: none;
    }
    .ch-auth-card-shell {
        box-shadow: var(--ch-shadow-md, 0 12px 32px rgba(15, 23, 42, 0.12));
    }
}
