/* =========================================================
   REGISTRATION PAGE
   Uses the same design as the existing LOGIN page
========================================================= */


/* =========================================================
   PAGE / WRAPPER
========================================================= */

.register-page {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.register-page .login-wrapper {
    width: 100%;
    height: 100vh;
    min-height: 100vh;

    display: grid;
    grid-template-columns: 1fr 1fr;
}


/* =========================================================
   LEFT SIDE - SCROLLABLE REGISTRATION PANEL
========================================================= */

.register-page .login-panel {
    height: 100vh;
    min-height: 0;

    overflow-x: hidden;
    overflow-y: auto;

    align-items: flex-start;
    justify-content: center;

    padding: 50px 70px;
}

.register-page .login-content {
    width: 100%;
    max-width: 580px;

    margin: auto 0;
}


/* =========================================================
   SCROLLBAR
========================================================= */

.register-page .login-panel::-webkit-scrollbar {
    width: 8px;
}

.register-page .login-panel::-webkit-scrollbar-track {
    background: rgba(45, 17, 0, 0.35);
}

.register-page .login-panel::-webkit-scrollbar-thumb {
    background: var(--grilled-orange);
    border-radius: 10px;
}

.register-page .login-panel::-webkit-scrollbar-thumb:hover {
    background: var(--sizzling-orange);
}

/* Firefox */

.register-page .login-panel {
    scrollbar-width: thin;
    scrollbar-color:
        var(--grilled-orange)
        rgba(45, 17, 0, 0.35);
}


/* =========================================================
   REGISTRATION FORM
========================================================= */

.register-page .register-form {
    width: 100%;
}

.register-page .register-form .input-group {
    margin-bottom: 19px;
}


/* =========================================================
   FIELD ICONS
========================================================= */

.register-page .field-icon {
    position: absolute;

    left: 18px;
    top: 50%;

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    color: var(--light-orange);

    pointer-events: none;
    z-index: 3;
}

.register-page .field-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   TEXT INPUTS
========================================================= */

.register-page .input-wrapper input {
    padding-left: 55px;
}


/* =========================================================
   PASSWORD FIELDS
========================================================= */

.register-page .input-wrapper input[type="password"],
.register-page .input-wrapper input[type="text"] {
    padding-right: 58px;
}


/* =========================================================
   PASSWORD SHOW / HIDE BUTTON
   ========================================================= */

.register-page .password-toggle {
    position: absolute;

    right: 12px;
    top: 50%;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    outline: none;

    background: transparent;

    color: var(--light-orange);

    transform: translateY(-50%);

    cursor: pointer;

    z-index: 20;

    pointer-events: auto;
}

.register-page .password-toggle:hover {
    color: var(--sizzling-orange);
}

.register-page .password-toggle:focus {
    outline: none;
}

.register-page .password-toggle svg {
    pointer-events: none;
}

.register-page .eye-icon {
    width: 21px;
    height: 21px;

    display: block;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.register-page .eye-closed {
    display: block;
}

.register-page .eye-open {
    display: none;
}

/* =========================================================
   CUSTOM DROPDOWNS
   SAME DESIGN AS TEXT FIELDS
   ========================================================= */

.register-page .custom-select-wrapper {
    position: relative;
    width: 100%;
}


/* =========================================================
   DROPDOWN BUTTON
   ========================================================= */

.register-page .custom-select {
    position: relative;

    width: 100%;
    height: 52px;

    padding: 0 48px 0 55px;

    display: flex;
    align-items: center;

    /* SAME DARK STYLE AS TEXT FIELDS */
    background: rgba(255, 255, 255, 0.06);

    color: #d9b7a0;

    border: 2px solid rgba(255, 153, 75, 0.55);
    border-radius: 12px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;

    box-sizing: border-box;

    outline: none;

    box-shadow: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Hover */

.register-page .custom-select:hover {
    background: rgba(255, 255, 255, 0.08);

    border-color: rgba(255, 153, 75, 0.75);
}


/* Active / Open */

.register-page .custom-select.active,
.register-page .custom-select:focus {
    background: rgba(255, 255, 255, 0.08);

    border-color: var(--light-orange);

    box-shadow:
        0 0 0 2px rgba(255, 145, 60, 0.12);
}


/* =========================================================
   DROPDOWN TEXT
   ========================================================= */

.register-page .custom-select-text {
    display: block;

    width: 100%;

    color: #d9b7a0;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   SELECTED DROPDOWN ICON
   ========================================================= */

.register-page .custom-selected-icon {
    width: 22px;

    height: 22px;

    display: none;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    margin-right: 10px;

    color: var(--light-orange);

    pointer-events: none;
}

.register-page .custom-selected-icon svg {
    width: 19px;

    height: 19px;

    display: block;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    
    stroke-linejoin: round;
}

/* =========================================================
   DROPDOWN LEFT ICON
   KEEP ORANGE LIKE TEXT FIELD ICONS
   ========================================================= */

.register-page .custom-select-wrapper > .field-icon {
    position: absolute;

    left: 18px;
    top: 50%;

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    color: var(--light-orange);

    pointer-events: none;

    z-index: 5;
}

.register-page .custom-select-wrapper > .field-icon svg {
    width: 21px;
    height: 21px;

    display: block;

    fill: none;

    stroke: var(--light-orange);

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   DROPDOWN ARROW
   ========================================================= */

.register-page .custom-select-arrow {
    position: absolute;

    right: 18px;
    top: 50%;

    width: 8px;
    height: 8px;

    border-right: 2px solid var(--light-orange);
    border-bottom: 2px solid var(--light-orange);

    transform:
        translateY(-65%)
        rotate(45deg);

    pointer-events: none;

    transition: transform 0.2s ease;
}


.register-page .custom-select.active .custom-select-arrow {
    transform:
        translateY(-25%)
        rotate(225deg);
}


/* =========================================================
   DROPDOWN OPTIONS PANEL
   ========================================================= */

.register-page .custom-options {
    position: absolute;

    top: calc(100% + 6px);
    left: 0;

    width: 100%;

    padding: 6px;

    box-sizing: border-box;

    background: #4b2412;

    border: 2px solid rgba(255, 153, 75, 0.60);
    border-radius: 12px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.30);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-5px);

    pointer-events: none;

    z-index: 1000;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}


/* Open */

.register-page .custom-options.open {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}


/* =========================================================
   INDIVIDUAL OPTIONS
   ========================================================= */

.register-page .custom-option {
    width: 100%;
    min-height: 44px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 7px 10px;

    background: transparent;

    color: #f3d7c2;

    border: none;
    border-radius: 8px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}


/* Hover */

.register-page .custom-option:hover {
    background: rgba(255, 153, 75, 0.16);

    color: #ffffff;
}


/* Selected */

.register-page .custom-option.selected {
    background: rgba(255, 153, 75, 0.20);

    color: #ffffff;
}


/* =========================================================
   OPTION ICONS
   SVG ONLY — NO EMOJIS
   ========================================================= */

.register-page .option-icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 7px;

    background: rgba(255, 153, 75, 0.10);

    box-shadow: none;
}

.register-page .option-icon svg {
    width: 17px;
    height: 17px;

    display: block;

    fill: none;

    stroke: var(--light-orange);

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   SUCCESS MESSAGE
========================================================= */

.register-page .register-success {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;
    padding: 14px 18px;

    border-left: 4px solid #45c46b;
    border-radius: 8px;

    background: rgba(69, 196, 107, 0.12);

    color: #9ff0b3;

    font-size: 14px;

    text-align: center;
}

/* =========================================================
   REGISTER BUTTON
========================================================= */

.register-button-wrapper {
    width: 100%;

    margin-top: 12px;
    margin-bottom: 20px;
}

.register-button {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    cursor: pointer;
}

.register-button:hover {
    text-decoration: none;
}


/* =========================================================
   ACCOUNT / LOGIN LINK
========================================================= */

.register-page .account-footer {
    padding-bottom: 25px;
}

.register-page .account-footer .create-account,
.register-page .account-footer .create-account:hover,
.register-page .account-footer .create-account:focus,
.register-page .account-footer .create-account:active {
    text-decoration: none;
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 1101px) {

    .register-page .restaurant-panel {
        display: flex;

        height: 100vh;
        min-height: 0;

        position: sticky;
        top: 0;
    }

}


/* =========================================================
   TABLET / SMALLER SCREEN
========================================================= */

@media (max-width: 1100px) {

    .register-page {
        overflow: auto;
    }

    .register-page .login-wrapper {
        height: auto;
        min-height: 100vh;

        grid-template-columns: 1fr;
    }

    .register-page .login-panel {
        height: auto;
        min-height: 100vh;

        overflow-y: visible;

        padding: 45px 30px;
    }

    .register-page .restaurant-panel {
        display: none;
    }

    .register-page .login-content {
        margin: 0 auto;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .register-page .login-panel {
        padding: 35px 20px;
    }

    .register-page .register-form .input-group {
        margin-bottom: 16px;
    }

    .register-page .account-footer {
        padding-bottom: 20px;
    }

    .register-page .custom-options {
        max-height: 250px;
        overflow-y: auto;
    }

    .register-page .custom-option {
        min-height: 46px;
    }

}