/* Halaman login — modern split layout */
:root {
    --auth-primary: #0d6b4a;
    --auth-primary-dark: #094d36;
    --auth-accent: #1fa36e;
    --auth-gold: #c9a227;
    --auth-text: #1e293b;
    --auth-muted: #64748b;
    --auth-radius: 1rem;
}

* {
    box-sizing: border-box;
}

.auth-body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    color: var(--auth-text);
    background: #eef2f7;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-wrapper {
    display: flex;
    flex: 1;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-brand {
    flex: 1;
    background: linear-gradient(145deg, var(--auth-primary-dark) 0%, var(--auth-primary) 45%, var(--auth-accent) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2.5rem;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-brand::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -120px;
    right: -80px;
}

.auth-brand::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -60px;
    left: -40px;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0 0 0.25rem;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    padding: 0.35rem 0;
    opacity: 0.92;
}

.auth-features i {
    width: 1.25rem;
    flex-shrink: 0;
    color: var(--auth-gold);
}

.auth-ease-box {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.65rem;
}

.auth-ease-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.45rem;
}

.auth-ease-title i {
    color: var(--auth-gold);
    font-size: 0.9rem;
}

.auth-ease-text {
    font-size: 0.76rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.auth-dev-credit {
    margin: 0.9rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.6);
}

.auth-logo-ring {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.auth-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.auth-brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.auth-brand-sub {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.auth-brand-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 1.25rem;
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 20px 48px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-card-header {
    margin-bottom: 1.5rem;
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.auth-card-subtitle {
    font-size: 0.875rem;
    color: var(--auth-muted);
    margin: 0;
    line-height: 1.4;
}

.auth-alert {
    font-size: 0.875rem;
    border: none;
    border-radius: 0.625rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.auth-field {
    margin-bottom: 1.15rem;
}

.auth-field .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 0.4rem;
}

.auth-input-group {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-muted);
    font-size: 0.9rem;
    z-index: 2;
    pointer-events: none;
}

.auth-input-group .form-control {
    padding: 0.7rem 0.9rem 0.7rem 2.6rem;
    border-radius: 0.625rem;
    border: 1.5px solid #e2e8f0;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.auth-input-group .form-control:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(31, 163, 110, 0.15);
    background: #fff;
}

.auth-btn-login {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 0.625rem;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-accent) 100%);
    box-shadow: 0 8px 24px rgba(13, 107, 74, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.auth-btn-login:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(13, 107, 74, 0.4);
}

.auth-footer-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--auth-muted);
    margin: 1.25rem 0 0;
}

/* Tablet & HP — layout vertikal */
@media (max-width: 991.98px) {
    .auth-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .auth-brand {
        flex: 0 0 auto;
        align-items: center;
        justify-content: flex-start;
        padding: 1.5rem 1.25rem 1.25rem;
        padding-top: max(1.5rem, env(safe-area-inset-top));
        text-align: center;
    }

    .auth-brand::before,
    .auth-brand::after {
        opacity: 0.5;
    }

    .auth-brand-inner {
        max-width: 100%;
        width: 100%;
    }

    .auth-logo-ring {
        width: 100px;
        height: 100px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0.85rem;
        padding: 10px;
    }

    .auth-brand-title {
        font-size: 1.4rem;
    }

    .auth-brand-sub {
        font-size: 0.88rem;
        margin-bottom: 0.65rem;
    }

    .auth-brand-desc {
        display: block;
        font-size: 0.8rem;
        line-height: 1.55;
        margin-bottom: 0.85rem;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .auth-features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.15rem 0.75rem;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .auth-features li {
        font-size: 0.78rem;
        padding: 0.28rem 0;
    }

    .auth-ease-box {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
        margin-top: 0.85rem;
        padding: 0.75rem 0.9rem;
    }

    .auth-ease-title {
        font-size: 0.78rem;
    }

    .auth-ease-text {
        font-size: 0.72rem;
        line-height: 1.55;
    }

    .auth-dev-credit {
        text-align: center;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.65rem;
    }

    .auth-form-side {
        flex: 0 0 auto;
        width: 100%;
        padding: 1.25rem 1rem 1.5rem;
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
        align-items: stretch;
    }

    .auth-card {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        padding: 1.35rem 1.25rem 1.15rem;
        box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
    }

    .auth-card-header {
        margin-bottom: 1.15rem;
    }

    .auth-card-title {
        font-size: 1.35rem;
    }
}

/* HP kecil — form di atas, info di bawah */
@media (max-width: 575.98px) {
    .auth-wrapper {
        display: flex;
        flex-direction: column;
    }

    .auth-form-side {
        order: 1;
        padding: 1rem 0.85rem 1.25rem;
        background: #f8fafc;
    }

    .auth-brand {
        order: 2;
        padding: 1.15rem 0.85rem 1.25rem;
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }

    .auth-brand::before,
    .auth-brand::after {
        display: none;
    }

    .auth-logo-ring {
        width: 80px;
        height: 80px;
        margin-bottom: 0.6rem;
    }

    .auth-brand-title {
        font-size: 1.2rem;
    }

    .auth-brand-sub {
        font-size: 0.82rem;
        margin-bottom: 0.5rem;
    }

    .auth-brand-desc {
        font-size: 0.76rem;
        margin-bottom: 0.75rem;
    }

    .auth-features {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-features li {
        font-size: 0.76rem;
    }

    .auth-card {
        padding: 1.15rem 1rem 1rem;
        border-radius: 0.85rem;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    }

    .auth-card-title {
        font-size: 1.2rem;
    }

    .auth-card-subtitle {
        font-size: 0.8rem;
    }

    .auth-field {
        margin-bottom: 1rem;
    }

    .auth-input-group .form-control {
        font-size: 16px;
        min-height: 48px;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .auth-btn-login {
        min-height: 48px;
        font-size: 0.95rem;
    }

    .auth-alert {
        font-size: 0.82rem;
        padding: 0.65rem 0.85rem;
    }

    .auth-ease-box {
        padding: 0.65rem 0.75rem;
    }

    .auth-ease-title {
        font-size: 0.75rem;
    }

    .auth-ease-text {
        font-size: 0.7rem;
    }
}

/* Landscape HP — kurangi tinggi panel hijau */
@media (max-width: 991.98px) and (max-height: 500px) and (orientation: landscape) {
    .auth-brand {
        padding: 0.75rem 1rem;
    }

    .auth-logo-ring {
        width: 60px;
        height: 60px;
        margin-bottom: 0.5rem;
    }

    .auth-brand-title {
        font-size: 1.1rem;
    }

    .auth-brand-desc,
    .auth-ease-box {
        display: none;
    }

    .auth-features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .auth-features li {
        font-size: 0.68rem;
        padding: 0.15rem 0;
    }

    .auth-form-side {
        padding: 0.75rem 1rem;
    }

    .auth-card {
        padding: 1rem;
    }

    .auth-card-header {
        margin-bottom: 0.75rem;
    }
}
