/* ============================================================
   CODINGGO LOGIN STYLES — CLEAN LIGHT
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green: #22c55e;
    --green-dark: #16a34a;
    --green-darker: #15803d;
    --green-soft: #dcfce7;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-darker: #c2410c;
    --orange-soft: #ffedd5;
    --navy: #1e293b;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    color: var(--gray-900);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============ WRAPPER ============ */
.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ============ SISI KIRI — BRANDING ============ */
.login-brand {
    background: linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 50%, #fff7ed 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--gray-200);
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(34,197,94,.2) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.login-brand::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(249,115,22,.15) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.login-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Logo */
.login-brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: 48px;
}

.login-brand-logo img {
    height: 90px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(34,197,94,.15));
}

/* Konten */
.login-brand-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 460px;
}

.login-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--gray-200);
    padding: 6px 14px 6px 8px;
    border-radius: 24px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--green-darker);
    margin-bottom: 20px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.login-brand-badge-dot {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--green), var(--orange));
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-brand-badge-dot::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
}

.login-brand-content h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    color: var(--navy);
}

.login-brand-content h1 .accent-green { color: var(--green); }
.login-brand-content h1 .accent-orange { color: var(--orange); }

.login-brand-content > p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 36px;
}

.login-brand-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: var(--gray-700);
    font-weight: 500;
}

.login-brand-features .check {
    width: 24px;
    height: 24px;
    background: var(--green-soft);
    border: 1.5px solid rgba(34,197,94,.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-brand-features .check svg {
    width: 12px;
    height: 12px;
    stroke: var(--green-darker);
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-brand-footer {
    font-size: 12px;
    color: var(--gray-500);
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,.05);
}

/* ============ SISI KANAN — FORM ============ */
.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #fff;
    position: relative;
}

.login-form-side::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(34,197,94,.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-box {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.login-box-header {
    margin-bottom: 32px;
}

.login-box-header .logo-mobile {
    display: none;
    margin-bottom: 24px;
}

.login-box-header .logo-mobile img {
    height: 70px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.login-box-header h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--navy);
    margin-bottom: 6px;
}

.login-box-header p {
    font-size: 14px;
    color: var(--gray-500);
}

/* Form */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
    letter-spacing: .2px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all .15s;
    outline: none;
    color: var(--gray-900);
}

.form-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

.form-input::placeholder {
    color: #94a3b8;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all .15s;
    font-family: inherit;
}

.password-toggle:hover {
    background: var(--green-soft);
    color: var(--green-darker);
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 24px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-darker));
    color: #fff;
    box-shadow: 0 6px 20px rgba(34,197,94,.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    transition: left .5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(34,197,94,.5);
}

.btn-primary:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.btn-block {
    width: 100%;
}

/* Alert */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    margin-bottom: 20px;
    display: none;
    font-weight: 600;
    border-left: 4px solid;
}

.alert.show { display: block; }

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #ef4444;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: var(--green);
}

.login-footer-text {
    margin-top: 28px;
    text-align: center;
    font-size: 12.5px;
    color: var(--gray-500);
}

.login-footer-text a {
    color: var(--green-darker);
    font-weight: 700;
}

.login-footer-text a:hover {
    text-decoration: underline;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }
    .login-brand {
        display: none;
    }
    .login-form-side {
        padding: 40px 24px;
        min-height: 100vh;
    }
    .login-box-header .logo-mobile {
        display: block;
    }
    .login-box-header h2 {
        font-size: 24px;
    }
}