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

:root {
    --primary-green: #00826b;
    --medium-green: #005b4b;
    --dark-green: #00332c;
    --accent-orange: #f4a261;
    --light-green: #e6f6f3;
    --grey-border: #e5e7eb;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

/* ── Layout ──────────────────────────────────────────── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── LEFT PANEL ──────────────────────────────────────── */
.login-left {
    flex: 0 0 45%;
    max-width: 45%;
    background: linear-gradient(145deg, #028090 0%, #00826b 45%, #005b4b 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 3rem;
    color: #fff;
}

/* Decorative circles */
.login-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* Brand */
.left-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.left-brand-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    backdrop-filter: blur(6px);
}

.left-brand-name {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
    color: #fff;
}

.left-brand-sub {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

/* Hero Text */
.left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.left-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

/* Feature list */
.left-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.left-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.left-feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

/* Testimonial card */
.testimonial-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.4rem 1.5rem;
    position: relative;
    z-index: 2;
}

.testimonial-text {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    margin: 0;
}

.testimonial-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* ── RIGHT PANEL ─────────────────────────────────────── */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background-color: #fff;
}

.login-form-box {
    width: 100%;
    max-width: 440px;
}

.login-form-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}

.login-form-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 2rem;
}

/* Form labels */
.form-label-custom {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

/* Input field */
.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
    pointer-events: none;
}

.form-control-custom {
    width: 100%;
    height: 50px;
    border: 1.5px solid var(--grey-border);
    border-radius: 12px;
    padding: 0 14px 0 42px;
    font-size: 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1e293b;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-control-custom::placeholder {
    color: #bfc9d3;
}

.form-control-custom:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 130, 107, 0.12);
}

/* Password toggle */
.password-wrap {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary-green);
}

/* Remember & Forgot */
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0 1.5rem;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    accent-color: var(--primary-green);
    cursor: pointer;
}

.remember-check span {
    font-size: 0.85rem;
    color: #374151;
    font-weight: 500;
}

.forgot-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--medium-green);
    text-decoration: underline;
}

/* Masuk Button */
.btn-masuk {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #f59012 100%);
    border: none;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(244, 162, 97, 0.35);
}

.btn-masuk:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 162, 97, 0.4);
}

.btn-masuk:active {
    transform: translateY(0);
}

/* Divider */
.divider-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

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

.divider-or span {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Google Button */
.btn-google {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1.5px solid var(--grey-border);
    background: #fff;
    color: #374151;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.btn-google:hover {
    border-color: #adb5bd;
    background-color: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.google-logo {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
}

/* Register link */
.register-link-row {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.register-link-row a {
    color: var(--primary-green);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.register-link-row a:hover {
    color: var(--medium-green);
    text-decoration: underline;
}

/* Alert error */
.alert-login-error {
    background-color: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: 12px;
    color: #dc2626;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
    .login-left {
        display: none;
    }

    .login-right {
        flex: 1;
        background: #f8fafc;
    }
}

@media (max-width: 480px) {
    .login-form-title {
        font-size: 1.6rem;
    }
}