:root {
    color-scheme: dark;

    --White-primary: #FFF;
    --Black: #000;
    --White-secondary: rgba(255, 255, 255, 0.50);
    --Blue: #0069FF;
    --Hover: #1EBCFB;
    --Gray: #E2E8F0;
    --Dark-gray: rgba(37, 37, 37, 0.50);
    --Red-Accent: #FF3B3B;
    --Green-Accent: #AAFF67;
    --Dark-Inactive: #323232;
    --bg-filter: hsla(0, 0%, 19%, 1);

    --gradient1: hsl(195, 100%, 55%);
    --gradient2: hsl(220, 72%, 56%);
    --box-shadow-2: hsla(0, 0%, 0%, 0.2);
    --box-shadow-3: hsla(0, 0%, 0%, 0.3);
    --box-shadow-5: hsla(0, 0%, 0%, 0.5);
}

/* Enhanced CSS with accessibility improvements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.3;
    min-height: 100vh;
    margin: 0;
}

a {
    color: var(--White-primary);
}

.x_large_font {
    font-size: 64px;
    font-size: clamp(2.5rem, 1rem + 1.2vw, 4rem);
}

.large_font {
    font-size: 35px;
    font-size: clamp(1.5rem, 0.8125rem + 0.55vw, 2.1875rem);
}

.medium_font {
    font-size: 28px;
    font-size: clamp(1.5rem, 1.25rem + 0.2vw, 1.75rem);
}

.container {
    margin: 0;
    background-color: var(--Dark-Inactive, #323232);
    color: var(--White-primary, #FFF);
    overflow: hidden;
    display: grid;
    grid-template-areas: "bild form";
    grid-template-columns: 60% 40%;
    /* grid-template-rows: 100vh; */
    justify-content: center;
    height: 100vh;
    background: url('../svg/blueglow.svg') no-repeat top right;
    background-size: contain;
}

.container_left {
    grid-area: bild;
    border-radius: 0 5.8vw 5.8vw 0;
    position: relative;
    background: linear-gradient(-45deg, var(--gradient1), var(--gradient2), var(--gradient1));
    background-size: 200% 200%;
    animation: gradient-animation 10s ease infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.container_left .logo {
    position: absolute;
    width: 7vw;
    height: auto;
    right: -1vw;
    bottom: 5vw;
    animation: tock 6s ease-out 2.14s forwards;
    will-change: transform;
}

@keyframes tock {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    50% {
        transform: translateX(195%) rotate(360deg);
    }

    100% {
        transform: translateX(0) rotate(0deg);
    }
}

.container_left .phone {
    width: 33%;
    height: 66%;
    max-height: 70vh;
    max-width: 30vh;
    background: hsl(0, 0%, 13%);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px var(--box-shadow-2);
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: infinite-slide 3s ease-in-out forwards;
    box-shadow: #35d 11px 11px 25px;
    min-width: 320px;
}

.container_left .phone .screen {
    border-radius: 20px;
    flex: 1;
    box-shadow: inset 0 5px 10px var(--box-shadow-3);
    /* background: url(../img/register.webp); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.container_left .phone .screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container_left .phone .home-button {
    width: 40px;
    height: 40px;
    background: hsl(0, 0%, 27%);
    border-radius: 50%;
    margin: 10px auto;
    box-shadow: inset 0 2px 5px var(--box-shadow-5);
}

.container_left .phone .home-button img {
    width: 100%;
    height: auto;
}

.container_right {
    grid-area: form;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url('../svg/blueglow1.svg') no-repeat bottom left;
    background-size: contain;
    overflow-y: auto;
    position: relative;
}

.container_right .container_inner {
    display: flex;
    flex-direction: column;

    justify-content: space-between;
    flex-grow: 1;
    padding: 6% 50px;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
}

.top_head_area {
    display: flex;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: left;
    margin-bottom: 5rem;
}

.step-header .peerLogo {
    max-width: 300px;
    min-width: 150px;
    width: 8vw;
    margin-bottom: 40px;
    margin-left: -0.5vw;
}

.step-header .peerLogo img {
    width: 100%;
    display: block;
}

.step-header .icon {

    max-width: 230px;
    margin-bottom: 3rem;
    display: inline-block;

}

.step-header .icon image {
    display: block;
    width: 100%;
    height: auto;
}

.step-header h2 {
    color: #FFF;
    line-height: 1.3;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 1.28px;
    margin-bottom: 5px;
}

.step-header h2 strong {
    font-style: italic;
    font-weight: 700;
}

.step-header p {
    color: var(--White-secondary);
    letter-spacing: 0.7px;
}

.step-footer {
    margin-top: 5rem;
    text-align: center;

    color: var(--White-secondary);
}

.step-footer a {
    color: var(--White-primary);
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s linear;
}

.step-footer a:hover {
    text-decoration: none;
    color: var(--Blue);
}



.input-group {
    margin-bottom: 3rem;
    position: relative;
}

.input-group.remember_forgetlink {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--White-primary);

}

.required::after {
    content: " *";
    color: var(--Red-Accent);
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 50px;
    border: 2px solid var(--bg-filter);
    border-radius: 75px;
    background: var(--bg-filter);
    transition: all 0.3s ease;
}

.checkbox-field .checkbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: all 0.3s ease;
    gap: 20px;
    margin-bottom: 15px;
}

.checkbox-field input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    margin: 0;
    font: inherit;
    color: var(--White-secondary);
    width: 25px;
    height: 25px;
    aspect-ratio: 1;
    border: 2px solid var(--White-secondary);
    border-radius: 0.1em;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.checkbox-field input[type="checkbox"]:checked {
    background: #fff;
}

.checkbox-field input[type="checkbox"]::before {
    content: "";
    width: 15px;
    height: 8px;
    transition: 120ms transform ease-in-out;
    border-left: 2px solid;
    border-bottom: 2px solid;
    transform: rotate(-40deg);
    margin-top: -5px;
    color: var(--Black);
    opacity: 0;
}

.checkbox-field input[type="checkbox"]:checked::before {
    opacity: 1;
}

.checkbox-field .checkbox-label {
    letter-spacing: 0.56px;
    color: var(--White-secondary);
    margin: 0;
}

.checkbox-field .checkbox-label a,
.forgetpassword-link a {
    color: var(--White-primary);
    text-decoration: underline;
}

.forgetpassword-link a {
    color: var(--White-secondary);
}

.checkbox-field .checkbox-label a:hover,
.forgetpassword-link a:hover {
    text-decoration: none;
    color: var(--White-primary);
}

.input-field.valid {
    border-color: var(--Green-Accent);
}

.input-field.invalid {
    border-color: var(--Red-Accent);
}

.input-icon {
    padding: 0 8px;
    color: var(--Blue);
    pointer-events: none;
}

.input-icon .peer-icon {
    font-size: 47px;
    font-size: clamp(2.1875rem, 0.6875rem + 1.2vw, 2.9375rem);

}

input[type="text"],
input[type="email"],
input[type="password"] {
    flex: 1;
    padding: 0 16px;
    border: none;
    background: transparent;
    font-size: inherit;
    line-height: 110px;
    color: var(--White-primary);
    outline: none;
}

input::placeholder {
    color: var(--White-secondary);
}

.already_register {
    margin-top: 20px;
    text-align: center;
    color: var(--White-secondary);
}

.already_register a:hover {
    text-decoration: none;
}

.validation-icon {
    padding: 0 12px;
    color: var(--White-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.validation-icon.show {
    opacity: 1;
}

.toggle-passwordBtn-icon {
    color: var(--White-secondary);
    padding: 0 12px;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.toggle-passwordBtn-icon .peer-icon,
.validation-icon .peer-icon {
    font-size: 47px;
    font-size: clamp(2.1875rem, 0.6875rem + 1.2vw, 2.9375rem);
}

.validation-message,
.response-message {
    margin-top: 0.5rem;
    min-height: 1.2rem;
    color: var(--Red-Accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 50px;

    transition: all 0.3s ease;

}

.validation-message.valid {
    color: var(--Green-Accent);
}

.validation-message:empty {
    display: none;
}

.password-strength {
    margin-top: 0.5rem;
}


.strength-meter {
    overflow: hidden;
    margin: 1.2rem 0;
    padding: 0 50px;
}

.strength-fill {
    display: flex;
    gap: 10px;
}

.strength-fill .strength-segment {
    border-radius: 4px;
    background: var(--White-secondary);
    height: 4px;
    width: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-fill.weak .segment-weak,
.strength-fill.weak2 .segment-weak,
.strength-fill.weak2 .segment-weak2 {
    background: var(--Red-Accent);
}

.strength-fill.medium .segment-weak,
.strength-fill.medium .segment-weak2,
.strength-fill.medium .segment-medium {
    background: #F7931A;
}

.strength-fill.strong .segment-weak,
.strength-fill.strong .segment-weak2,
.strength-fill.strong .segment-medium,
.strength-fill.strong .segment-strong {
    background: var(--Green-Accent);
}

.strength-fill.excellent .strength-segment {
    background: var(--Green-Accent) !important;
}

.strength-requirements {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5px;

}

.strength-requirements li {
    color: var(--White-secondary);
}

.strength-requirements li.met {
    color: var(--Green-Accent);
}

.btn {
    padding: 0 50px;
    border: 2px solid var(--White-primary);
    font-size: 35px;
    font-size: clamp(1.5rem, 0.8125rem + 0.55vw, 2.1875rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.7px;
    border-radius: 75px;
    line-height: 110px;
    background-color: transparent;
    color: var(--White-primary);
    width: 100%;
    font-family: inherit;
}

a.btn {
    text-decoration: none;
    display: flex;
    gap: 15px;
    justify-content: center;
}

a.back-btn {
    line-height: 90px;

    width: auto;
    font-weight: 400;
}



.btn:disabled {

    cursor: not-allowed;
    color: var(--White-secondary);
}

.btn:hover:not(:disabled) {
    background-color: var(--White-primary);
    color: var(--Black);
}

.btn-red {
    background: var(--Red-Accent, #FF3B3B);
    border-color: var(--Red-Accent, #FF3B3B);
    font-weight: 700;
}

.btn-red:hover {
    background: var(--Red-Accent, #FF3B3B);
    border-color: #B71818;
    color: var(--White-primary);
}

.btn-primary {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), var(--Blue, #0069FF);
    border: 0;
    color: var(--White-secondary);
}

.btn-primary:hover:not(:disabled) {

    background: var(--Hover);

}

.btn-secondary {

    color: var(--White-secondary);
    border-color: var(--White-secondary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--White-primary);
    border-color: var(--White-primary);
    color: var(--Black);
}

.btn-white {

    color: var(--Black);
    border-color: var(--White-primary);
    background-color: var(--White-primary);
}

.btn-white:hover:not(:disabled) {
    background: var(--Hover);
    border-color: var(--Hover);

}


.btn-group {
    display: flex;
    gap: 4rem;
    margin-top: 1.5rem;
}



.referral-code-display {
    background: var(--bg-filter);
    padding: 0 50px;
    border-radius: 75px;
    display: flex;
    color: var(--White-secondary);
    font-weight: 400;
    align-items: center;
    gap: 20px;
    line-height: 100px;
}


.success-message {
    text-align: center;

}

.success-message .step-header {
    text-align: center;
}

.success-message .icon {
    font-size: 12rem;
    margin-bottom: 1rem;

    color: var(--Green-Accent);
}

.error-warning {
    border: 1px solid;
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    background-color: var(--Red-Accent);
    border: 0;
}



.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: var(--White-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 28px;
    font-size: clamp(1.5rem, 1.25rem + 0.2vw, 1.75rem);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: var(--Green-Accent);
    color: var(--Black);
}

.toast.error {
    background: var(--Red-Accent);
}



/* High Contrast Mode */
@media (prefers-contrast: high) {
    .input-field {
        border-width: 3px;
    }

    .btn-primary {
        background: var(--Blue);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


.footer_area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;

}

.footer_area a {
    color: var(--White-primary);
    text-decoration: underline;
    opacity: 0;
}

.footer_area a:hover {
    text-decoration: none;
}

.footer_area p {
    color: var(--White-secondary);
}

/*----Login Page ----*/
.line-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--White-secondary);
    margin: 6% 0;
}

.line-with-text::before,
.line-with-text::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--White-secondary);
    /* width: 10vw; */
}

.line-with-text::before {
    margin-right: 10px;
}

.line-with-text::after {
    margin-left: 10px;
}

.line-with-text span {

    padding: 0 10px;
    color: var(--White-secondary);
}

/*------------Forgaet password ---------*/
.dont_get_code {
    margin-top: 20px;
    text-align: center;
    color: var(--White-secondary);
}

.dont_get_code #timecounter {
    color: #fff;
    font-weight: bold;
    min-width: 60px;
    display: inline-block;
}

.dont_get_code .disable {
    display: none !important;
}

.dont_get_code a {
    font-weight: bold;
}

.dont_get_code a:hover {
    text-decoration: none;
}


@media screen and (max-width: 3000px) {
    .container {
        grid-template-columns: 50% 50%;

    }

    .container_right .container_inner {
        max-width: 800px;
    }

    .x_large_font {
        font-size: 54px;
        font-size: clamp(2.1875rem, -0.1875rem + 1.9vw, 3.375rem);
    }

    .large_font,
    .btn,
    .toast {
        font-size: 30px;
        font-size: clamp(1.25rem, 0rem + 1vw, 1.875rem);
    }


    .medium_font {
        font-size: 25px;
        font-size: clamp(1rem, -0.125rem + 0.9vw, 1.5625rem);
    }

    .toggle-passwordBtn-icon .peer-icon,
    .validation-icon .peer-icon,
    .input-icon .peer-icon {
        font-size: 40px;
        font-size: clamp(1.25rem, -1.25rem + 2vw, 2.5rem);
    }

    .referral-code-display {
        line-height: 70px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        line-height: 70px;
        padding: 0 5px;

    }

    .btn {
        line-height: 70px;

    }

    a.back-btn {
        line-height: 60px;
    }

    .input-field {
        padding: 0 30px;
    }

    .validation-message,
    .response-message {
        padding: 0 30px;
    }

    .step-header {
        margin-bottom: 2rem;
    }

    .input-group {
        margin-bottom: 1.5rem;
    }

    .checkbox-field .checkbox-wrapper {
        gap: 10px;
    }

    .checkbox-field input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }

    .checkbox-field input[type="checkbox"]::before {
        width: 10px;
        height: 5px;
        margin-top: -3px;
    }

}

@media screen and (max-width: 2000px) {

    .container_right .container_inner {
        max-width: 600px;
    }

    a.back-btn {
        line-height: 50px;
        padding: 0 30px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        line-height: 60px;
    }

    .input-field {
        padding: 0 15px;
    }

    .validation-message,
    .response-message {
        padding: 0 15px;
    }

    .btn {
        line-height: 60px;
    }

    .referral-code-display {
        line-height: 60px;
        gap: 5px;
        padding: 0 15px;
    }

    .step-footer {
        margin-top: 2rem;
    }

}

@media screen and (max-width: 1200px) {
    .container {
        grid-template-columns: 40% 60%;
    }

    .step-header {
        margin-bottom: 1.2rem;
    }

    .input-group {
        margin-bottom: 1rem;
    }

    .referral-code-display {
        line-height: 50px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        line-height: 50px;
    }

    .btn {
        line-height: 50px;
    }
}

@media screen and (max-width: 1024px) {
    .container {
        grid-template-columns: 35% 65%;
    }

    .container_left .phone {
        min-width: 270px;
        min-height: 500px;
        max-height: 500px;
    }

    .strength-meter {
        margin: 0.6rem 0;
    }

    a.back-btn {
        line-height: 40px;
        padding: 0 20px;
        gap: 10px;
    }

}

@media screen and (max-width: 980px) {
    .container {
        grid-template-columns: 10% 90%;

    }

    .container_left {
        border-radius: 0;
    }

    .container_left .phone {
        display: none;
    }

    .container_right .container_inner {
        padding: 40px 30px;
    }

    .x_large_font {
        font-size: 28px;
    }

    .large_font,
    .btn,
    .toast {
        font-size: 16px;
    }

    .medium_font {
        font-size: 14px;
    }

    .strength-requirements {
        font-size: 12px;
    }



}

@media screen and (max-width: 600px) {
    .strength-requirements {
        font-size: 10px;
        gap: 3px;
    }
}

@media screen and (max-width: 500px) {
    .container {
        grid-template-columns: 5% 95%;

    }

    .container_right .container_inner {
        padding: 30px 15px;
    }

    .container_left .logo {
        width: 15vw;
        right: -3vw;
    }

}

/* general --> none class needed in login/registration module */
.none {
    display: none;
}

.show {
    display: block;
}

.strength-labels {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: 600;
    text-transform: capitalize;
    padding: 10px 50px 0px 50px;
}

.strength-labels .strength-text {
    opacity: 0.9;
    transition: opacity 0.3s ease, color 0.3s ease;
}

/* Active / highlighted state */
.strength-labels .strength-text.active {
    opacity: 1;
}

/* Colors for each level */
.strength-labels .strength-text.very-weak {
    color: var(--Red-Accent) 
}

.strength-labels .strength-text.weak {
    color: var(--Red-Accent) 
}

.strength-labels .strength-text.improvement {
    color: #F7931A;
}

.strength-labels .strength-text.good {
    color: var(--Green-Accent)
}

.strength-labels .strength-text.excellent {
     color: var(--Green-Accent)
}