/* ==================================================
   INSTAWORKS - REGISTRATION PAGE
================================================== */

* {
    box-sizing: border-box;
}

/* ==================================================
   MAIN PAGE
================================================== */

.register-wrapper {
    min-height: 100vh;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    padding: 24px 20px;

    background:
        radial-gradient(circle at top left, #8b4be3 0%, transparent 20%),
        radial-gradient(circle at bottom right, #c9adff 0%, transparent 22%),
        linear-gradient(
            135deg,
            #faf8ff 0%,
            #f5f0ff 50%,
            #ffffff 100%
        );

    overflow-x: hidden;
}

/* ==================================================
   DECORATIVE BACKGROUND CIRCLES
================================================== */

.register-wrapper::before {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    border-radius: 50%;

    top: -160px;
    right: -100px;

    background: rgba(123, 47, 247, 0.07);

    pointer-events: none;
}

.register-wrapper::after {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    border-radius: 50%;

    bottom: -180px;
    left: -160px;

    background: rgba(123, 47, 247, 0.06);

    pointer-events: none;
}

/* ==================================================
   MAIN CONTAINER
================================================== */

.register-container {
    width: 100%;
    max-width: 1100px;

    position: relative;
    z-index: 2;

    animation: registerAppear 0.6s ease;
}

@keyframes registerAppear {

    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Make both columns equal height */

.register-container > .row {
    align-items: stretch;
}

/* ==================================================
   LEFT PURPLE PANEL
================================================== */

.register-left {
    height: 100%;
    min-height: 690px;

    background:
        linear-gradient(
            160deg,
            #8b4be3 0%,
            #6f35d0 45%,
            #4527a0 100%
        );

    border-radius: 26px 0 0 26px;

    color: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 35px 30px;

    position: relative;
    overflow: hidden;
}

/* Decorative glow */

.register-left::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;

    top: 160px;
    left: 50%;

    transform: translateX(-50%);

    pointer-events: none;
}

/* ==================================================
   LEFT IMAGE
================================================== */

.register-image {
    width: 240px;
    max-width: 85%;

    margin-bottom: 25px;

    position: relative;
    z-index: 2;

    animation: registerFloat 4s ease-in-out infinite;
}

@keyframes registerFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ==================================================
   LEFT TEXT
================================================== */

.register-left h2 {
    position: relative;
    z-index: 2;

    font-size: 29px;
    line-height: 1.25;

    font-weight: 700;

    margin: 0 0 15px;
}

.register-left p {
    position: relative;
    z-index: 2;

    max-width: 300px;

    font-size: 15px;
    line-height: 1.6;

    margin: 0;

    color: rgba(255, 255, 255, 0.9);
}

/* ==================================================
   SLIDER DOTS
================================================== */

.slider-dots {
    position: relative;
    z-index: 2;

    margin-top: 28px;
}

.slider-dots span {
    display: inline-block;

    width: 10px;
    height: 10px;

    margin: 0 5px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.35);
}

.slider-dots span.active {
    background: #ffffff;
}

/* ==================================================
   RIGHT REGISTRATION CARD
================================================== */

.register-card {
    min-height: 690px;
    height: 100%;

    background: #ffffff;

    border-radius: 0 26px 26px 0;

    padding: 24px 38px 20px;

    box-shadow:
        15px 20px 50px rgba(60, 30, 120, 0.10);

    /*
       IMPORTANT:
       Do NOT use fixed height + overflow:hidden here.
       That was cutting off the Login link.
    */
    overflow: visible;
}

/* ==================================================
   HEADER
================================================== */

.register-header {
    margin-bottom: 15px !important;
}

.welcome-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 7px 17px;

    border-radius: 25px;

    background: #efe7ff;

    color: #5b21b6;

    font-size: 13px;
    font-weight: 600;
}

.register-card h2 {
    margin: 10px 0 4px;

    color: #171d42;

    font-size: 29px;
    line-height: 1.2;

    font-weight: 700;
}

.register-header p {
    margin: 0;

    color: #6b7280;

    font-size: 14px;
}

/* ==================================================
   FORM GRID
================================================== */

.register-card .row {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 10px;
}

/* ==================================================
   LABELS
================================================== */

.register-card label {
    display: block;

    margin-bottom: 5px;

    color: #111827;

    font-size: 13px;
    font-weight: 600;
}

/* ==========================================
   PERFECT INPUT + ICON ALIGNMENT
========================================== */

.register-card .input-group {
    width: 100%;
    height: 44px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    margin: 0;
}

/* LEFT ICON BOX */

.register-card .input-group-text {
    width: 48px;
    min-width: 48px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: #ffffff;

    border: 1px solid #d8c8ff;
    border-right: 0;

    border-radius: 10px 0 0 10px;

    color: #6d28d9;
    font-size: 17px;
}

/* INPUT */

.register-card .input-group .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    height: 44px;

    padding: 0 14px;

    border: 1px solid #d8c8ff;
    border-left: 0;

    border-radius: 0 10px 10px 0;

    background: #ffffff;

    font-size: 14px;
    line-height: 44px;

    box-shadow: none;
}

/* ICON PERFECT CENTER */

.register-card .input-group-text i {
    display: flex;
    align-items: center;
    justify-content: center;

    line-height: 1;
}

/* PLACEHOLDER */

.register-card .form-control::placeholder {
    color: #777b8e;
    opacity: 1;
}

/* FOCUS */

.register-card .input-group:focus-within .input-group-text {
    border-color: #7b2ff7;
}

.register-card .input-group .form-control:focus {
    border-color: #7b2ff7;
    border-left: 0;

    outline: none;
    box-shadow: none;
}


/* ==========================================
   PASSWORD BOX
========================================== */

.register-card .input-group .form-control + .password-toggle {
    width: 48px;
    min-width: 48px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: #ffffff;

    border: 1px solid #d8c8ff;
    border-left: 0;

    border-radius: 0 10px 10px 0;

    color: #667085;

    box-shadow: none;
}

/* Remove right radius from password input */

.register-card .input-group:has(.password-toggle) .form-control {
    border-radius: 0;
    border-right: 0;
}

.register-card .input-group:focus-within .password-toggle {
    border-color: #7b2ff7;
}

.password-toggle i {
    line-height: 1;
    font-size: 16px;
}



.register-card .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.register-card .form-label {
    height: 20px;
    margin: 0 0 5px;
    line-height: 20px;
}

.register-card .input-group,
.register-card select {
    margin-top: 0;
}


/* ==================================================
   HELP + ERROR TEXT
================================================== */

.form-help {
    margin-top: 4px;

    color: #777;

    font-size: 10px;
    line-height: 1.3;
}

.form-help ul {
    margin: 3px 0 0;
    padding-left: 17px;
}

.form-error {
    margin-top: 3px;

    color: #dc3545;

    font-size: 11px;
    line-height: 1.3;
}

/* ==================================================
   CREATE ACCOUNT BUTTON
================================================== */

.register-btn {
    width: 100%;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            90deg,
            #7b2ff7,
            #5b21b6
        );

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.register-btn:hover {
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 10px 22px rgba(123, 47, 247, 0.30);
}

/* ==================================================
   LOGIN LINK - IMPORTANT
================================================== */

.register-login-link {
    display: block;

    margin: 14px 0 0 !important;

    text-align: center;

    color: #222;

    font-size: 13px;
    line-height: 1.4;
}

.register-login-link a {
    color: #6d28d9;

    font-weight: 600;

    text-decoration: none;
}

.register-login-link a:hover {
    text-decoration: underline;
}

/* ==================================================
   LINKS
================================================== */

.register-card a {
    color: #5b21b6;

    font-weight: 600;

    text-decoration: none;
}

/* ==================================================
   BACKGROUND DOTS
================================================== */

.bg-dots {
    position: absolute;

    width: 190px;
    height: 160px;

    background-image:
        radial-gradient(
            #8b5cf6 2px,
            transparent 2px
        );

    background-size: 18px 18px;

    opacity: 0.30;

    pointer-events: none;
}

.top-left {
    top: 30px;
    left: 30px;
}

.bottom-right {
    right: 30px;
    bottom: 30px;
}

/* ==================================================
   LAPTOP / SHORT SCREEN
================================================== */

@media (min-width: 992px) and (max-height: 800px) {

    .register-wrapper {
        padding: 15px 20px;
    }

    .register-left,
    .register-card {
        min-height: 620px;
    }

    .register-card {
        padding:
            17px
            32px
            14px;
    }

    .register-header {
        margin-bottom: 9px !important;
    }

    .welcome-badge {
        padding: 5px 15px;

        font-size: 12px;
    }

    .register-card h2 {
        margin-top: 7px;

        font-size: 25px;
    }

    .register-header p {
        font-size: 12px;
    }

    .register-card .row {
        --bs-gutter-y: 7px;
    }

    .register-card label {
        margin-bottom: 3px;

        font-size: 12px;
    }

    .register-card .form-control,
    .register-card select,
    .register-card .input-group-text,
    .password-toggle {
        height: 39px;
    }

    .register-btn {
        height: 41px;
    }

    .register-login-link {
        margin-top: 9px !important;
    }

    .register-image {
        width: 200px;

        margin-bottom: 18px;
    }

    .register-left h2 {
        font-size: 26px;
    }

    .register-left p {
        font-size: 14px;
    }
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 991px) {

    /*
       On tablet/mobile the left illustration disappears,
       so the form gets the whole width.
    */

    .register-wrapper {
        min-height: 100vh;

        padding: 30px 15px;

        overflow-y: auto;
    }

    .register-left {
        display: none;
    }

    .register-container {
        max-width: 700px;
    }

    .register-card {
        min-height: auto;

        border-radius: 24px;

        padding: 30px;
    }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 576px) {

    .register-wrapper {
        padding: 20px 12px;
    }

    .register-card {
        padding: 22px 18px;

        border-radius: 20px;
    }

    .register-card h2 {
        font-size: 25px;
    }

    .register-header p {
        font-size: 13px;
    }

    .register-card .form-control,
    .register-card select,
    .register-card .input-group-text,
    .password-toggle {
        height: 44px;
    }

    .register-btn {
        height: 46px;
    }
}

/* ==================================================
   FINAL FORM ALIGNMENT FIX
   KEEP THIS AT THE VERY BOTTOM
================================================== */

/* Every input group must use exactly one height */
.register-card .input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;

    width: 100%;
    height: 44px;

    margin: 0;
    padding: 0;

    border: 1px solid #d8c8ff;
    border-radius: 10px;

    background: #fff;

    overflow: hidden;
}

/* LEFT ICON */

.register-card .input-group .input-group-text {
    flex: 0 0 48px;

    width: 48px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0 !important;
    border-right: 1px solid #eee8ff !important;

    border-radius: 0 !important;

    background: #fff;

    color: #7028f7;
}

/* ACTUAL INPUT */

.register-card .input-group > .form-control {
    flex: 1 1 auto;

    width: 1%;
    min-width: 0;
    height: 100%;

    margin: 0 !important;
    padding: 0 14px;

    border: 0 !important;
    border-radius: 0 !important;

    background: #fff;

    box-shadow: none !important;
    outline: none !important;

    font-size: 14px;
    line-height: normal;
}

/* ICON ALIGNMENT */

.register-card .input-group-text i {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    line-height: 1;
}

/* PASSWORD EYE BUTTON */

.register-card .input-group .password-toggle {
    flex: 0 0 48px;

    width: 48px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border: 0 !important;
    border-left: 1px solid #eee8ff !important;

    border-radius: 0 !important;

    background: #fff;

    color: #667085;

    box-shadow: none !important;
}

.register-card .password-toggle:hover,
.register-card .password-toggle:focus {
    background: #faf8ff;
    color: #7028f7;
}

/* FOCUS ENTIRE BOX */

.register-card .input-group:focus-within {
    border-color: #7028f7;

    box-shadow:
        0 0 0 2px rgba(112, 40, 247, 0.08);
}

/* LABELS */

.register-card .form-label {
    display: block;

    height: auto;

    margin: 0 0 5px;

    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
}

/* NORMAL SELECT */

.register-card select.form-control,
.register-card select {
    width: 100%;
    height: 44px;

    margin: 0;
    padding: 0 14px;

    border: 1px solid #d8c8ff;
    border-radius: 10px;

    background-color: #fff;

    box-shadow: none;
}

/* REMOVE CHROME AUTOFILL BLUE */

.register-card input:-webkit-autofill,
.register-card input:-webkit-autofill:hover,
.register-card input:-webkit-autofill:focus,
.register-card input:-webkit-autofill:active {
    -webkit-text-fill-color: #111827 !important;

    -webkit-box-shadow:
        0 0 0 1000px #ffffff inset !important;

    box-shadow:
        0 0 0 1000px #ffffff inset !important;

    transition:
        background-color 9999s ease-in-out 0s;
}

/* PLACEHOLDERS */

.register-card input::placeholder {
    color: #777b8e;
    opacity: 1;
}

/* KEEP COLUMNS ALIGNED */

.register-card .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* ==================================================
   SHORT LAPTOP SCREEN
================================================== */

@media (min-width: 992px) and (max-height: 800px) {

    /* Parent AND children must all have same height */

    .register-card .input-group {
        height: 39px;
    }

    .register-card .input-group .input-group-text,
    .register-card .input-group > .form-control,
    .register-card .input-group .password-toggle {
        height: 100%;
    }

    .register-card select.form-control,
    .register-card select {
        height: 39px;
    }
}