/* =========================================================
   POPUP REGISTER
========================================================= */

.register-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    justify-content: center;
    align-items: center;

    padding: 16px;
    box-sizing: border-box;

    background: rgba(120, 40, 0, 0.35);
}

.register-modal.show,
.register-modal.active {
    display: flex;
}

.register-popup {
    width: 720px;
    max-width: calc(100vw - 32px);

    min-height: 520px;

    position: relative;
    box-sizing: border-box;
    overflow: hidden;

    background: linear-gradient(145deg, #FFF7ED 0%, #FFFFFF 100%);

    border-radius: 24px;

    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);

    animation: registerPopupShow .25s ease;
}

@keyframes registerPopupShow {
    from {
        opacity: 0;
        transform: scale(.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* HEADER */

.register-popup-header {
    width: 100%;
    height: 158px;

    box-sizing: border-box;

    padding: 20px 32px;

    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #EA580C 0%,
        #F97316 50%,
        #FB923C 100%
    );
}

.register-popup-header::before {
    content: "";

    position: absolute;

    width: 112px;
    height: 112px;

    left: -34px;
    top: -34px;

    background: rgba(255,255,255,.10);
    border-radius: 50%;
}

.register-popup-header::after {
    content: "";

    position: absolute;

    width: 80px;
    height: 80px;

    right: -24px;
    bottom: -24px;

    background: rgba(255,255,255,.08);
    border-radius: 50%;
}

/* ICON */

.register-popup-icon {
    width: 56px;
    height: 56px;

    margin-bottom: 7px;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.22);
    border-radius: 16px;

    box-shadow:
        0 4px 6px -4px rgba(0,0,0,.10),
        0 10px 15px -3px rgba(0,0,0,.10);

    font-size: 24px;
}

.register-popup-header h2 {
    margin: 0;

    position: relative;
    z-index: 2;

    color: white;

    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

.register-popup-header p {
    margin: 2px 0 0;

    position: relative;
    z-index: 2;

    color: #FFEDD4;

    font-family: "Nunito", sans-serif;
    font-size: 12px;
    line-height: 16px;
}

/* CLOSE */

.register-popup-close {
    position: absolute;

    top: 16px;
    right: 16px;

    width: 32px;
    height: 32px;

    z-index: 20;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: white;

    font-size: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.register-popup-close:hover {
    background: rgba(255,255,255,.18);
}

/* BODY */

.register-popup-body {
    padding: 22px 32px 20px;
    box-sizing: border-box;
}

/* GRID 2 KOLOM */

.register-popup-form {
    width: 100%;

    display: grid;

    grid-template-columns: 1fr 1fr;

    column-gap: 20px;
    row-gap: 13px;

    box-sizing: border-box;
}

/* FIELD */

.register-popup-field {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.register-popup-field label {
    color: #CA3500;

    font-family: "Nunito", sans-serif;
    font-size: 14px;
    line-height: 20px;
}

/* INPUT WRAPPER */

.register-popup-input {
    width: 100%;
    height: 44px;

    position: relative;
    box-sizing: border-box;
}

.register-popup-input input,
.register-popup-input select {
    width: 100%;
    height: 44px;

    box-sizing: border-box;

    padding: 10px 40px;

    background: #FFF7ED;

    border: 2px solid #FED7AA;
    border-radius: 12px;

    outline: none;

    color: #7C2D12;

    font-family: "Nunito", sans-serif;
    font-size: 14px;
}

.register-popup-input input::placeholder {
    color: #FFB86A;
}

.register-popup-input input:focus,
.register-popup-input select:focus {
    border-color: #F97316;

    box-shadow:
        0 0 0 3px rgba(249,115,22,.12);
}

/* SELECT */

.register-popup-input select {
    appearance: none;
    -webkit-appearance: none;

    color: #FDBA74;

    cursor: pointer;
}

.register-popup-input select option {
    color: #7C2D12;
}

/* ICON */

.register-popup-input-icon {
    position: absolute;

    left: 12px;
    top: 12px;

    width: 20px;
    height: 20px;

    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #FFB86A;

    pointer-events: none;
}

/* PASSWORD */

.register-popup-password-toggle {
    position: absolute;

    right: 8px;
    top: 8px;

    width: 28px;
    height: 28px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #FFB86A;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 5;
}

/* SUCCESS */

.register-popup-success {
    grid-column: 1 / -1;

    padding: 10px 14px;

    border: 1px solid #86EFAC;
    border-radius: 10px;

    background: #DCFCE7;

    color: #166534;

    font-family: "Nunito", sans-serif;
    font-size: 13px;
}

/* SUBMIT */

.register-popup-submit {
    grid-column: 1 / -1;

    width: 100%;
    height: 44px;

    border: 0;
    border-radius: 12px;

    background: linear-gradient(
        90deg,
        #F97316 0%,
        #FB923C 25%,
        #FDBA74 50%,
        #FB923C 75%,
        #F97316 100%
    );

    box-shadow:
        0 4px 6px -4px rgba(0,0,0,.10),
        0 10px 15px -3px rgba(0,0,0,.10);

    color: white;

    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.register-popup-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* LOGIN LINK */

.register-popup-login-link {
    grid-column: 1 / -1;

    width: 100%;

    text-align: center;

    color: #FF8904;

    font-family: "Nunito", sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.register-popup-login-link a {
    margin-left: 3px;

    color: #F54900;

    font-weight: 600;

    text-decoration: underline;

    cursor: pointer;
}

/* MOBILE */

@media (max-width: 700px) {
    .register-modal {
        padding: 12px;
    }

    .register-popup {
        width: 100%;
        max-width: calc(100vw - 24px);

        max-height: calc(100vh - 24px);

        overflow-y: auto;
    }

    .register-popup-form {
        grid-template-columns: 1fr;
    }

    .register-popup-submit,
    .register-popup-login-link {
        grid-column: auto;
    }
}