@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: #f5f7fa;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    background: #ffffff;
}

.left-side {
    position: relative;
    width: 55%;
    height: 100vh;
    overflow: hidden;
    flex-shrink: 0;
}

.left-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.right-side {
    position: relative;
    width: 45%;
    height: 100vh;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    flex-shrink: 0;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 20px 0;
}

.login-card h1 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1a2b3c;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.login-card h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #2F8E58;
    margin: 8px auto 0;
    border-radius: 2px;
}

.input-group {
    margin-bottom: 20px;
}

.login-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1a2b3c;
}

.login-card input {
    width: 100%;
    height: 50px;
    border: 1.5px solid #e0e5ec;
    border-radius: 12px;
    padding: 0 18px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.3s ease;
    color: #1a2b3c;
}

.login-card input::placeholder {
    color: #a0aec0;
}

.login-card input:focus {
    outline: none;
    border-color: #2F8E58;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(47, 142, 88, 0.1);
}

.login-card input:hover {
    border-color: #b0c4d0;
}

.error-message {
    color: #e53e3e;
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #feb2b2;
    display: none;
}

.error-message.show {
    display: block;
}

.btn-login {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: #2F8E58;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background: #257349;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 142, 88, 0.35);
}

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

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    margin: 0 16px;
    color: #718096;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-google {
    width: 100%;
    height: 50px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #1a2b3c;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

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

.btn-google img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.register {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #4a5568;
}

.register a {
    color: #2F8E58;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.register a:hover {
    color: #1a5c38;
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .left-side {
        display: none;
    }

    .right-side {
        width: 100%;
        padding: 30px 20px;
    }

    .login-card {
        max-width: 420px;
        padding: 10px 0;
    }

    .login-card h1 {
        font-size: 30px;
    }
}

@media (max-width: 600px) {
    .right-side {
        padding: 20px 16px;
    }

    .login-card {
        max-width: 100%;
    }

    .login-card h1 {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .login-card input {
        height: 46px;
        font-size: 14px;
        padding: 0 14px;
    }

    .btn-login {
        height: 46px;
        font-size: 15px;
    }

    .btn-google {
        height: 46px;
        font-size: 14px;
    }

    .login-card label {
        font-size: 13px;
    }

    .divider {
        margin: 18px 0;
    }

    .register {
        font-size: 13px;
        margin-top: 18px;
    }
}

@media (max-width: 380px) {
    .login-card h1 {
        font-size: 22px;
    }

    .login-card input {
        height: 42px;
        font-size: 13px;
    }

    .btn-login {
        height: 42px;
        font-size: 14px;
    }

    .btn-google {
        height: 42px;
        font-size: 13px;
    }

    .btn-google img {
        width: 18px;
        height: 18px;
    }
}

/* ===============================
   POPUP: BELUM TERDAFTAR
================================ */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-overlay.show {
    display: flex;
}

.popup-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.popup-box h3 {
    color: #1a2b3c;
    font-size: 20px;
    margin-bottom: 10px;
}

.popup-box p {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.popup-actions {
    display: flex;
    gap: 12px;
}

.btn-popup-secondary,
.btn-popup-primary {
    flex: 1;
    height: 44px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border: none;
}

.btn-popup-secondary {
    background: #f1f5f9;
    color: #1a2b3c;
}

.btn-popup-secondary:hover {
    background: #e2e8f0;
}

.btn-popup-primary {
    background: #2F8E58;
    color: #ffffff;
}

.btn-popup-primary:hover {
    background: #257349;
}