
/* =========================
   HALAMAN DAFTAR BELIBELI
========================= */

.register-page {
    min-height: calc(100vh - 76px);
    padding: 55px 24px;
    background: #f7f9f3;
}

.register-container {
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
}

/* Informasi sebelah kiri */

.register-information {
    padding: 25px 0;
}

.register-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #365314;
    font-size: 27px;
    font-weight: 800;
    margin-bottom: 35px;
}

.register-brand-icon {
    font-size: 35px;
}

.register-information h1 {
    max-width: 460px;
    margin: 0 0 18px;

    color: #283618;
    font-size: 38px;
    line-height: 1.3;
    font-weight: 800;
}

.register-information > p {
    max-width: 430px;
    color: #73786b;
    font-size: 15px;
    line-height: 1.8;
}

/* Keuntungan akun */

.register-benefits {
    margin-top: 38px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eaf2dc;
    border-radius: 13px;
    font-size: 23px;
}

.benefit-item h3 {
    margin: 0 0 5px;
    color: #35451f;
    font-size: 15px;
}

.benefit-item p {
    margin: 0;
    color: #777c70;
    font-size: 13px;
}

/* Kartu form */

.register-form-section {
    width: 100%;
}

.register-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;

    padding: 38px;
    background: #ffffff;

    border: 1px solid #e9eddf;
    border-radius: 18px;

    box-shadow: 0 12px 40px rgba(50, 70, 25, 0.07);
}

.register-heading {
    margin-bottom: 27px;
}

.register-label {
    display: inline-block;
    margin-bottom: 10px;

    color: #668b2b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.register-heading h2 {
    margin: 0 0 9px;
    color: #283618;
    font-size: 27px;
    font-weight: 800;
}

.register-heading p {
    margin: 0;
    color: #85897e;
    font-size: 13px;
    line-height: 1.6;
}

/* Input */

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

.form-group label {
    display: block;
    margin-bottom: 8px;

    color: #3e4635;
    font-size: 13px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    height: 47px;
    padding: 0 14px;

    border: 1px solid #e0e5d8;
    border-radius: 9px;
    outline: none;

    background: #ffffff;
    color: #333333;
    font-size: 13px;

    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: #a5aa9d;
}

.form-group input:focus {
    border-color: #719b36;
    box-shadow: 0 0 0 3px rgba(113, 155, 54, 0.12);
}

/* Password */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 85px;
}

.show-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    border: none;
    background: transparent;

    color: #5b7d27;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Persetujuan */

.register-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin: 20px 0;
}

.register-agreement input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #4d7018;
    flex-shrink: 0;
}

.register-agreement label {
    color: #777c70;
    font-size: 12px;
    line-height: 1.7;
}

.register-agreement a {
    color: #4d7018;
    font-weight: 700;
    text-decoration: none;
}

/* Tombol daftar */

.register-submit {
    width: 100%;
    min-height: 49px;
    padding: 12px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: none;
    border-radius: 9px;

    background: #4d7018;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    cursor: pointer;

    transition: background 0.2s;
}

.register-submit:hover {
    background: #3d5b12;
}

.register-submit span {
    font-size: 20px;
}

/* Garis pemisah */

.register-divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 25px 0;

    color: #a0a497;
    font-size: 12px;
}

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

/* Link login */

.register-login {
    text-align: center;
    color: #777c70;
    font-size: 13px;
}

.register-login a {
    color: #4d7018;
    font-weight: 800;
    text-decoration: none;
}

.register-login a:hover {
    text-decoration: underline;
}

/* Pesan */

.register-alert {
    padding: 13px 15px;
    margin-bottom: 20px;

    border-radius: 9px;
    font-size: 12px;
    line-height: 1.7;
}

.register-alert ul {
    margin: 7px 0 0;
    padding-left: 18px;
}

.register-error {
    background: #fff1f0;
    border: 1px solid #ffd6d2;
    color: #a93226;
}

.register-success {
    background: #f0f7e5;
    border: 1px solid #d9e8c3;
    color: #456817;
}

/* Footer */

.register-footer {
    padding: 20px;
    text-align: center;

    background: #ffffff;
    border-top: 1px solid #e8ebdf;
}

.register-footer p {
    margin: 0;
    color: #85897e;
    font-size: 12px;
}

/* Responsive tablet */

@media (max-width: 900px) {
    .register-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .register-information {
        text-align: center;
        padding: 0;
    }

    .register-brand {
        justify-content: center;
        margin-bottom: 20px;
    }

    .register-information h1,
    .register-information > p {
        margin-left: auto;
        margin-right: auto;
    }

    .register-information h1 {
        font-size: 32px;
    }

    .register-benefits {
        max-width: 420px;
        margin: 30px auto 0;
        text-align: left;
    }
}

/* Responsive HP */

@media (max-width: 520px) {
    .register-page {
        padding: 30px 14px;
    }

    .register-information h1 {
        font-size: 27px;
    }

    .register-information > p {
        font-size: 13px;
    }

    .register-card {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .register-heading h2 {
        font-size: 24px;
    }

    .register-brand {
        font-size: 23px;
    }
}

/* FIX INPUT PASSWORD OVERFLOW */

.register-card,
.register-card * {
    box-sizing: border-box;
}

.register-form-section {
    min-width: 0;
    width: 100%;
}

.register-card {
    width: 100%;
    max-width: 480px;
}

.register-card form {
    width: 100%;
}

.form-group {
    width: 100%;
    min-width: 0;
}

.form-group input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.password-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
}

.password-wrapper input {
    width: 100%;
    padding-right: 95px;
    box-sizing: border-box;
}

.show-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
