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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f4f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 960px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.left-section {
    width: 50%;
    background: linear-gradient(180deg, #f8fffb, #eef7ff);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.left-section::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(40, 167, 69, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -80px;
}

.left-section::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(0, 86, 179, 0.05);
    border-radius: 50%;
    bottom: -100px;
    left: -80px;
}

.branding {
    position: relative;
    z-index: 2;
}

.logo {
    width: 130px;
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
}

.title {
    font-size: 22px;
    font-weight: 700;
    color: #0b1f4d;
    line-height: 1.3;
    margin-bottom: 10px;
}

.description {
    font-size: 12px;
    color: #5d6778;
    line-height: 1.6;
    max-width: 100%;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 10px;
}

.green { background: #e8fff1; color: #1ea94b; }
.blue { background: #eaf2ff; color: #0056b3; }
.yellow { background: #fff8df; color: #c99900; }
.purple { background: #f4ebff; color: #7b2cbf; }

.feature-title {
    font-size: 13px;
    font-weight: 600;
    color: #16213e;
    margin-bottom: 4px;
}

.feature-text {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
}

.right-section {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    background: #fafafa;
}

.login-card {
    width: 100%;
    max-width: 340px;
    background: #fff;
    padding: 28px 24px;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #0b1f4d;
    margin-bottom: 4px;
    text-align: center;
}

.login-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 12px;
}

.login-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 12px;
}

.login-success {
    background: #dcfce7;
    color: #166534;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 12px;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: #16213e;
    font-weight: 500;
    font-size: 12px;
}

.input-box {
    width: 100%;
    height: 44px;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 16px;
    outline: none;
    transition: 0.2s;
    background: #fff;
}

.input-box:focus {
    border-color: #1ea94b;
    box-shadow: 0 0 0 3px rgba(30, 169, 75, 0.1);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
    font-size: 12px;
}

.remember input {
    width: 18px;
    height: 18px;
}

.forgot {
    text-decoration: none;
    color: #0056b3;
    font-size: 12px;
    font-weight: 500;
}

.login-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #1db954, #0056b3);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.login-btn:hover {
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.2);
}

.footer-text {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: #6b7280;
}

.footer-text a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        max-width: 440px;
    }

    .left-section,
    .right-section {
        width: 100%;
    }

    .left-section {
        padding: 24px 20px;
    }

    .right-section {
        padding: 20px 16px;
    }

    .features {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .logo {
        width: 110px;
    }

    .title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    body {
        align-items: flex-start;
        padding: 12px;
    }

    .container {
        border-radius: 12px;
        min-height: auto;
    }

    .left-section {
        padding: 20px 16px;
    }

    .left-section::before,
    .left-section::after {
        display: none;
    }

    .features {
        display: none;
    }

    .description {
        font-size: 11px;
    }

    .right-section {
        padding: 16px;
    }

    .login-card {
        padding: 22px 18px;
        box-shadow: none;
        max-width: none;
    }

    .login-title {
        font-size: 20px;
    }

    .input-box,
    .login-btn {
        min-height: 48px;
    }
}

@media (max-width: 380px) {
    .title {
        font-size: 18px;
    }

    .login-title {
        font-size: 18px;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
    }
}
