@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
    font-family: 'Helvetica Custom';
    /* Give it a unique, memorable name for use in CSS */
    src: url("/static/fonts/HelveticaNeueMedium.3de700a4650f.otf") format('woff');
    /* Path to your font file */
    font-weight: normal;
    /* Adjust if this specific WOFF is 'bold' or a different weight */
    font-style: normal;
    font-display: swap;
    /* Recommended for better loading experience */
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Custom";
    text-decoration: none;
    list-style: none;
    user-select: none;
    outline: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(90deg, #E8EAEB);
    font-family: "Helvetica Custom";
}

.back-btn {
    position: absolute;
    left: 1%;
    top: 1%;
    color: #026181;
}

.back-btn a {
    display: inline-block;
    position: relative;
}

/* Stack icons on top of each other */
.back-btn svg {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
    /* smooth transition */
}

/* Initial states */
.back-btn svg.icon-outline {
    opacity: 1;
    z-index: 2;
}

.back-btn svg.icon-fill {
    opacity: 0;
    z-index: 1;
}

/* Hover states */
.back-btn a:hover svg.icon-outline {
    opacity: 0;
}

.back-btn a:hover svg.icon-fill {
    opacity: 1;
}

.back-btn a:visited {
    color: #026181;
    /* visited link color */
}

.container {
    position: relative;
    width: 850px;
    height: 550px;
    background: #E7E7E7;
    margin: 20px;
    /* border-radius: 30px; */
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    overflow: hidden;
}

.container h2 {
    font-size: 36px;
    margin: -10px 0;
    /* margin-top: 160px; */
}

.container p {
    font-size: 14.5px;
    margin: 15px 0;
}

form {
    width: 100%;
}

.form-box {
    position: absolute;
    right: 0;
    width: 55%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    color: #333;
    text-align: center;
    padding: 40px;
    z-index: 2;
    transition: right 0.6s ease-in-out 1.2s, visibility 0s 1s;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.container.active .form-box {
    right: 45%;
}

.form-box.register {
    visibility: hidden;
    padding: 30px 36px;
}

.container.active .form-box.register {
    visibility: visible;
}

.register-form {
    /* border: 2px solid red; */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding-right: 4px;
}

.input-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    margin: 10px 0;
    margin-bottom: 30px;
    /* border: 2px solid red; */
    width: 100%;
}

/* .input-box:nth-of-type(2){
    margin-bottom: 0;
} */

#label_email_login,
#label_company #label_firstname,
#label_lastname,
#label_password,
#label_email_signup,
#signup-label_password,
#signup-confirm-label_password {
    font-size: 13px;
}

#login-email,
#signup-email,
#company_name {
    width: 100%;
    /* padding-right: 120px; */
}

#login-password,
#signup-password,
#signup-confirm-password {
    position: relative;
    width: 100%;
    /* padding-right: 120px; */
}

.register-form .input-box {
    margin: 6px 0;
    margin-bottom: 8px;
    /* border: 2px solid red; */
}

.btn-shine {
    /* margin: -10px 0; */
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    /* padding: 12px 48px; */
    align-self: center;
    color: #026181;
    margin-bottom: 30px;
    /* background: linear-gradient(120deg, #026181 0%, #ffffff 10%, #000000 20%); */
    /* background-size: 200% auto; */
    /* background-position: -200%; */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    /* animation: shine 3s linear infinite; */
    /* animation-fill-mode: forwards; */
    /* -webkit-text-size-adjust: none; */
    font-weight: 600;
    font-size: 36px;
    text-decoration: none;
    white-space: nowrap;
    /* font-family: "Poppins", sans-serif; */
}

.register-form .btn-shine {
    /* border: 2px solid red; */
    margin-bottom: 22px;
}

/* @keyframes shine {
    0% {
        background-position: 0;
    }
    60% {
        background-position: 180px;
    }
    100% {
        background-position: 180px;
    }
} */

.input-box input {
    width: 100%;
    padding: 13px 50px 13px 20px;
    background: #FAF8FC;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    outline: none;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Hide default browser password reveal eye icon (IE/Edge) */
.input-box input[type="password"]::-ms-reveal,
.input-box input[type="password"]::-ms-clear {
    display: none;
}

.input-box select {
    width: 100%;
    padding: 13px 50px 13px 20px;
    background: #FAF8FC;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    outline: none;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.input-box select::-ms-expand {
    display: none;
}

.input-box input::placeholder {
    color: #888;
    font-weight: 400;
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    pointer-events: none;
}

#login-toggle-btn,
#signup-toggle-btn,
#signup-confirm-toggle-btn {
    position: absolute;
    height: 96%;
    width: 60px;
    right: 0px;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    border: none;
    background-color: #026181;
    padding: 4px 8px;
    font-size: 0.9em;
    cursor: pointer;
    color: #ffffff;
    margin-top: 1px;
    margin-right: 1px;
}

.input-error {
    border-color: crimson !important;
}


.forgot-link {
    /* margin: -15px 0 15px; */
    width: 100%;
    display: flex;
    align-items: space-between;
    justify-content: space-between;
    gap: 125px;
    margin-bottom: 20px;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 4px;
    padding: 10px 50px;
    font-size: 14px;
    color: #026181;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    width: 100%;
    height: 48px;
    border-radius: 8px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, .1); */
    border: 1px solid #CBD5E1;
    cursor: pointer;
    font-weight: 600;
    /* font-family: 'Helvetica Neue'; */
}

.login-form .google-btn {
    margin-top: 18px;
}

.login-form .google-btn-link-login {
    width: 100%;
}


.google-btn img {
    height: 18px;
    width: 18px;
    margin-right: 10px;
}

/* --- NEW CSS FOR TOAST MESSAGES --- */
#toast-container {
    position: fixed;
    top: 20px;
    /* Adjust as needed */
    right: 20px;
    /* Adjust as needed */
    z-index: 1000;
    /* Ensure it's above other content */
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Space between multiple toasts */
}

.toast-message {
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    /* Start hidden */
    transform: translateY(-20px);
    /* Start slightly above */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s;
    visibility: hidden;
    /* Hide completely when not visible */
    min-width: 250px;
    /* Ensure a decent size */
    text-align: center;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.toast-message.hide {
    opacity: 0;
    transform: translateY(-20px);
    /* Transition handles the fade-out, visibility change done by JS listener */
}


/* Specific styles for different message types */
.toast-message.success {
    background-color: #4CAF50;
    /* Green */
}

.toast-message.error {
    background-color: #f44336;
    /* Red */
}

.toast-message.warning {
    background-color: #ff9800;
    /* Orange */
}

.toast-message.info {
    background-color: #2196F3;
    /* Blue */
}


.tick_container {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
}

.tick_container input {
    display: none;
}

.tick_container svg {
    overflow: visible;
}

.path {
    fill: none;
    stroke: #026181;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease;
    stroke-dasharray: 241 9999999;
    stroke-dashoffset: 0;
}

.tick_container input:checked~svg .path {
    stroke-dasharray: 70.5096664428711 9999999;
    stroke-dashoffset: -262.2723388671875;
}

.forgot-link a {
    font-size: 13px;
    color: #026181;
}


.signup-button-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* border: 2px solid red; */
    margin-top: 10px;
    width: 100%;
}

.signup-button-section .google-btn {
    padding: 10px 43px;
}

.btn {
    width: 100%;
    height: 48px;
    background: #026181;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.signup-btn {
    /* width: 100%; */
    height: 48px;
    background: #026181;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    padding: 0 38px;
}


.toggle-box {
    position: absolute;
    width: 100%;
    height: 100%;
}

.toggle-box::before {
    content: '';
    position: absolute;
    left: -250%;
    width: 300%;
    height: 100%;
    background: #026181;
    /* border-radius: 150px; */
    z-index: 1;
    transition: 1.8s ease-in-out;
}

.container.active .toggle-box::before {
    left: 45%;
}

.toggle-panel {
    position: absolute;
    width: 45%;
    height: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    transition: all 0.6s ease-in-out;
}


.toggle-panel.toggle-left {
    left: 0;
    transition-delay: 1.2s;
    z-index: 1;
}

.toggle-panel.toggle-left::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -55px;
    width: 100px;
    height: 100px;
    border: 3px solid #FAF8FC;
    border-radius: 50%;
    z-index: 0;
    transition: all 0.6s ease-in-out;

}

.toggle-panel.toggle-left::after {
    content: "";
    position: absolute;
    bottom: -140px;
    right: -120px;
    width: 200px;
    height: 200px;
    border: 3px solid #FAF8FC;
    /* or any accent */
    border-radius: 50%;
    z-index: 0;
    transition: all 0.6s ease-in-out;

}

.container.active .toggle-panel.toggle-left {
    left: -50%;
    transition-delay: .6s;
}

.toggle-panel.toggle-right {
    right: -40%;
    transition-delay: .6s;
    z-index: 1;
}

.toggle-panel.toggle-right::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -130px;
    width: 200px;
    height: 200px;
    border: 3px solid #FAF8FC;
    border-radius: 50%;
    z-index: 0;
    transition: all 0.6s ease-in-out;

}

.toggle-panel.toggle-right::after {
    content: "";
    position: absolute;
    bottom: -145px;
    right: -100px;
    width: 200px;
    height: 200px;
    border: 3px solid #FAF8FC;
    /* or any accent */
    border-radius: 50%;
    z-index: 0;
    transition: all 0.6s ease-in-out;

}

/* When .hide-shapes is on a .toggle-panel, its ::before/::after circles become invisible */
.toggle-panel.hide-shapes::before,
.toggle-panel.hide-shapes::after {
    opacity: 0;
    /* Disable any transition on those pseudo-elements so they vanish immediately */
    /* transition: none; */
}

.container.active .toggle-panel.toggle-right {
    right: 0;
    transition-delay: 1.2s;
}


.toggle-panel p {
    margin-bottom: 20px;
}

.toggle-panel .btn {
    width: 160px;
    height: 46px;
    background: transparent;
    border: 2px solid #fff;
    box-shadow: none;
}

#wolf-img-left {
    width: 180px;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 100px;
    right: 121px;
    z-index: 2;
}

#wolf-img-right {
    width: 180px;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 100px;
    left: 121px;
    z-index: 2;
}

.wolf-container {
    position: relative;
    width: 180px;
    height: 180px;
    overflow: hidden;
    /* border: 2px solid red; */
    margin-bottom: 20px;
}

#wolf-body-left,
#wolf-body-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#wolf-left-hand-left,
#wolf-right-hand-left,
#wolf-left-hand-right,
#wolf-right-hand-right {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    transform: translateY(100%);
    z-index: 2;
}

#wolf-left-hand-left,
#wolf-left-hand-right {
    left: 0;
}

#wolf-right-hand-left,
#wolf-right-hand-right {
    right: 12px;
}


@media screen and (min-width: 651px) and (max-width: 1024px) {

    .container {
        width: 620px;
        height: 500px;
    }

    /* RIGHT SIDE (FORM) */
    .form-box {
        width: 55%;
        padding: 10px 18px;
    }

    .container.active .form-box {
        right: 45%;
    }

    /* REGISTER FORM */
    .register-form {
        gap: 2px;
        overflow: visible;
        /* FIX: prevents button clipping */
        display: flex;
        flex-direction: column;
    }

    .register-form .input-box {
        margin: 3px 0;
        margin-bottom: 5px;
    }

    .input-box input,
    .input-box select {
        padding: 7px 38px 7px 12px;
        font-size: 13.5px;
    }

    label {
        font-size: 11.5px;
    }

    .register-form>div {
        margin-bottom: 2px;
    }

    .forgot-link {
        gap: 0;
        margin-bottom: 10px;
    }

    /* BUTTON SECTION */
    .signup-button-section {
        display: flex;
        flex-direction: column;
        gap: 6px;

        margin-top: 6px;
        padding-bottom: 5px;
    }

    .signup-button-section a {
        width: 100%;
    }

    /* UNIFIED BUTTON STYLE */
    .signup-btn,
    .register-form .google-btn {
        width: 100%;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 8px;
        font-size: 12.5px;
        box-sizing: border-box;
    }

    /* SIGNUP BUTTON */
    .signup-btn {
        padding: 0;
    }

    /* GOOGLE BUTTON */
    .register-form .google-btn {
        gap: 10px;
        white-space: nowrap;
        padding: 0 14px;
        line-height: 1;
    }

    .register-form .google-btn img {
        flex-shrink: 0;
    }

    /* LEFT SIDE */
    .toggle-panel {
        width: 45%;
        padding: 14px;
    }

    .toggle-panel h2 {
        font-size: 21px;
        margin-bottom: 4px;
    }

    .toggle-panel p {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .btn-shine {
        font-size: 24px;
        margin-bottom: 4px;
    }

    /* Wolf */
    .wolf-container {
        width: 130px;
        height: 130px;
        margin-bottom: 8px;
    }

    #wolf-img-left,
    #wolf-img-right {
        width: 130px;
    }
}


@media screen and (max-width: 650px) {
    .back-btn,
    .wolf-container,
    .toggle-panel::before,
    .toggle-panel::after {
        display: none;
    }
    .forgot-link {
        gap: 10px;
        justify-content: space-between;
    }
    .container {
        height: calc(100vh - 40px);
    }

    .form-box {
        bottom: 0;
        width: 100%;
        height: 75%;
        z-index: 1;
        overflow-y: auto;
        padding: 20px 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .register-form {
        overflow-y: auto;
        padding-right: 4px;
    }

    .container.active .form-box {
        bottom: 0;
        right: 0;
    }

    .form-box.register {
        bottom: 0;
        right: 0;
        visibility: hidden;
        transition: visibility 0s 1s, bottom 0.6s ease-in-out 1.2s;
    }

    .container.active .form-box.register {
        visibility: visible;
        bottom: 25%;
    }

    .form-box.login {
        height: 80%;
    }

    .toggle-box::before {
        left: 0;
        top: -275%;
        width: 100%;
        height: 300%;
        border-radius: 30px;
        z-index: 1;
    }

    .container.active .toggle-box::before {
        left: 0;
        top: 75%;
    }

    .toggle-panel {
        width: 100%;
        height: 25%;
        z-index: 3;
    }

    .toggle-panel.toggle-left {
        top: 0;
        left: 0;
        transition: top 0.6s ease-in-out 1.2s;
    }

    .container.active .toggle-panel.toggle-left {
        left: 0;
        top: -25%;
        transition-delay: .6s;
    }

    .toggle-panel.toggle-right {
        right: 0;
        bottom: -25%;
        transition: bottom 0.6s ease-in-out 0.6s;
    }

    .container.active .toggle-panel.toggle-right {
        bottom: 0;
        transition-delay: 1.2s;
        height: 24%;
    }

    #wolf-img-left {
        top: 20px;
        right: 50%;
        transform: translateX(50%);
    }

    #wolf-img-right {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .signup-button-section {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
        /* padding-bottom: 40px; */
    }

    .signup-button-section a {
        width: 100% !important;
    }

    .signup-btn, .google-btn {
        width: 100% !important;
    }

    .register-form {
        width: 100%;
    }

    .login-form {
        margin-top: 80px;
    }

    .btn-shine {
        font-size: 26px;
        white-space: normal;
        text-align: left;
        width: 100%;
    }

    .login-form.btn-shine {
        margin-top: 65px;
    }

    .toggle-panel h2 {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .toggle-panel p {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .toggle-panel .btn {
        height: 40px;
    }

    #first_last_name_container {
        flex-direction: column !important;
        gap: 0 !important;
    }
}

@media screen and (max-width: 400px) {
    .form-box {
        padding: 20px;
    }

    .toggle-panel h1 {
        font-size: 30px;
    }

    .signup-button-section .google-btn, .google-btn {
        padding: 10px 12px;
    }
}