/* Patungan+ Auth — matches storefront beranda */

:root {
    --ak-blue: #1565C0;
    --ak-blue-dark: #0D47A1;
    --ak-blue-light: #1E88E5;
    --ak-soft: #E8F1FC;
    --ak-bg: #F5F8FC;
    --ak-text: #0F172A;
    --ak-muted: #64748B;
    --ak-border: #E3EDF7;
    --ak-radius: 18px;
    --ak-font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --ak-display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.ak-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--ak-font);
    color: var(--ak-text);
    background:
        radial-gradient(900px 420px at 12% -8%, rgba(21, 101, 192, 0.16), transparent 58%),
        radial-gradient(700px 380px at 92% 0%, rgba(30, 136, 229, 0.12), transparent 55%),
        var(--ak-bg);
    display: flex;
    flex-direction: column;
}

.ak-auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1120px, calc(100% - 2rem));
    margin: 1rem auto 0;
    padding: 0.35rem 0;
}

.ak-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--ak-display);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    color: var(--ak-text);
    text-decoration: none;
}

.ak-auth-brand:hover {
    color: var(--ak-text);
}

.ak-auth-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(145deg, #1E88E5, #0D47A1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(21, 101, 192, 0.28);
}

.ak-auth-brand .ak-accent {
    color: var(--ak-blue);
}

.ak-auth-top-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ak-muted);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1.5px solid var(--ak-border);
    background: #fff;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.ak-auth-top-link:hover {
    color: var(--ak-blue);
    border-color: #B6D0F0;
    background: var(--ak-soft);
}

.ak-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 2.5rem;
}

.ak-auth-shell {
    width: min(440px, 100%);
}

.ak-auth-head {
    text-align: center;
    margin-bottom: 1.35rem;
}

.ak-auth-head h1 {
    font-family: var(--ak-display);
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.45rem;
    color: var(--ak-text);
}

.ak-auth-head p {
    margin: 0;
    color: var(--ak-muted);
    font-size: 0.95rem;
}

.ak-auth-head a {
    color: var(--ak-blue);
    font-weight: 700;
    text-decoration: none;
}

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

.ak-auth-card {
    background: #fff;
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius);
    box-shadow: 0 8px 30px rgba(13, 71, 161, 0.07);
    padding: 1.5rem 1.35rem 1.65rem;
}

@media (min-width: 480px) {
    .ak-auth-card {
        padding: 1.75rem 1.75rem 1.9rem;
    }
}

.ak-auth-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ak-text);
    margin-bottom: 0.4rem;
}

.ak-auth-input,
.ak-auth-card .form-control {
    width: 100%;
    border: 1.5px solid var(--ak-border);
    border-radius: 12px;
    background: #fff;
    color: var(--ak-text);
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ak-auth-input:focus,
.ak-auth-card .form-control:focus {
    outline: none;
    border-color: var(--ak-blue);
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.12);
    background: #fff;
    color: var(--ak-text);
}

.ak-auth-input::placeholder,
.ak-auth-card .form-control::placeholder {
    color: #94A3B8;
}

.ak-auth-field {
    margin-bottom: 1rem;
}

.ak-auth-field:last-of-type {
    margin-bottom: 0;
}

.ak-auth-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin: 0.85rem 0 1.15rem;
    font-size: 0.88rem;
}

.ak-auth-meta a {
    color: var(--ak-blue);
    font-weight: 600;
    text-decoration: none;
}

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

.ak-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ak-muted);
    font-weight: 500;
    cursor: pointer;
}

.ak-auth-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--ak-blue);
}

.ak-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ak-auth-btn-primary {
    background: var(--ak-blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.28);
}

.ak-auth-btn-primary:hover {
    background: var(--ak-blue-dark);
    color: #fff;
    transform: translateY(-1px);
}

.ak-auth-btn-google {
    background: #fff;
    color: var(--ak-text);
    border: 1.5px solid var(--ak-border);
}

.ak-auth-btn-google:hover {
    background: var(--ak-soft);
    border-color: #B6D0F0;
    color: var(--ak-text);
}

.ak-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.15rem 0;
    color: var(--ak-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ak-auth-divider::before,
.ak-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ak-border);
}

.ak-auth-phone {
    display: flex;
    align-items: stretch;
}

.ak-auth-phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.9rem;
    background: var(--ak-soft);
    border: 1.5px solid var(--ak-border);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: var(--ak-blue-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.ak-auth-phone .form-control {
    border-radius: 0 12px 12px 0;
}

.ak-auth-password-wrap {
    position: relative;
}

.ak-auth-password-wrap .form-control {
    padding-right: 2.75rem;
}

.ak-auth-toggle-pw {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--ak-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.ak-auth-toggle-pw:hover {
    color: var(--ak-blue);
}

.ak-auth-error {
    color: #DC2626;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.ak-auth-alert {
    border-radius: 12px;
    border: 1px solid #BBF7D0;
    background: #F0FDF4;
    color: #166534;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ak-auth-alert-danger {
    border-color: #FECACA;
    background: #FEF2F2;
    color: #991B1B;
}

.ak-auth-footer {
    text-align: center;
    padding: 0 1rem 1.5rem;
    color: var(--ak-muted);
    font-size: 0.82rem;
}

.ak-auth-footer a {
    color: var(--ak-blue);
    font-weight: 600;
    text-decoration: none;
}

.modal-content.ak-auth-modal {
    border: 1px solid var(--ak-border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(13, 71, 161, 0.12);
}

.modal-content.ak-auth-modal .modal-header {
    border-bottom-color: var(--ak-border);
}

.modal-content.ak-auth-modal .modal-title {
    font-family: var(--ak-display);
    font-weight: 800;
}
