/* =========================================================
   ANWA RESIDENT SIGN IN
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --purple-light: #D1C4E9;
    --purple-soft: #9B7FD8;
    --purple: #7B3FC0;
    --purple-primary: #5A0FAF;
    --purple-dark: #3D0075;
    --text: #21182b;
    --text-soft: #746b7d;
    --cream: #FCF7F2;
    --white: #ffffff;
    --border: #e9e1eb;
    --danger: #c93b58;
    --radius: 26px;
    --transition:.35s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    min-height: 100%;
}


body {
    min-height: 100%;
    font-family:"Poppins", sans-serif;
    background:#f2edf5;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}


button,
input {
    font-family:"Poppins", sans-serif;
}


button {
    border: 0;
}


a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   PAGE
========================================================= */

.signin-page {
    min-height: 100vh;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.signin-container {

    position: relative;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns:68% 32%;
    overflow: hidden;
    background: var(--white);
    box-shadow:0 25px 80pxrgba(61, 0, 117, .12);
}


/* =========================================================
   LEFT VISUAL PANEL
========================================================= */

.visual-panel {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    color: white;
}


/* =========================================================
   BACKGROUND
========================================================= */

.visual-background {
    position: absolute;
    inset: 0;
    background-image:url("images/signin/community-login.jpg");
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition:transform 1.2s cubic-bezier(.22, 1, .36, 1);
}


.visual-panel:hover
.visual-background {
    transform: scale(1.05);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            110deg,
            rgba(61, 0, 117, .94) 0%,
            rgba(61, 0, 117, .75) 45%,
            rgba(90, 15, 175, .38) 100%
        );
}


/* subtle texture */

.visual-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(
            rgba(255,255,255,.06) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.06) 1px,
            transparent 1px
        );
    background-size: 80px 80px;
    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );
}


/* =========================================================
   VISUAL CONTENT
========================================================= */

.visual-content {
    position: relative;
    z-index: 2;
    min-height: 760px;
    padding: 80px 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.brand-logo {
    display: inline-block;
    width: max-content;
}

.brand-logo img {
    width: 300px;
    height: auto;
    display: block;
}


/* =========================================================
   VISUAL MESSAGE
========================================================= */

.visual-message {
    max-width: 650px;
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 40px;
}


.eyebrow {
    display: block;
    margin-bottom: 18px;
    color:rgba(255,255,255,.62);
    font-size: var(--font-12);
    font-weight: var(--weight-600);
    letter-spacing: 2.2px;
}


.visual-message :is(h1, h2) {
    max-width: 700px;
    font-size:clamp(var(--font-32), 3.5vw, var(--font-48));
    line-height: 1.02;
    letter-spacing: -1px;
    font-weight: var(--weight-600);
}


.visual-message :is(h1, h2) span {

    display: block;

    color: var(--purple-light);
}


.visual-message p {

    max-width: 590px;

    margin-top: 28px;

    color:
        rgba(255,255,255,.76);

    font-size: var(--font-14);

    line-height: 1.8;
}


/* =========================================================
   COMMUNITY STATS
========================================================= */

.visual-bottom {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top:
        1px solid
        rgba(255,255,255,.18);
}


.community-stat {

    min-height: 95px;

    padding:
        20px 25px;

    border-right:
        1px solid
        rgba(255,255,255,.15);

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.community-stat:first-child {

    padding-left: 0;
}


.community-stat:last-child {

    border-right: 0;
}


.community-stat strong {

    font-size: var(--font-28);

    line-height: 1;

    font-weight: var(--weight-500);
}


.community-stat span {

    margin-top: 7px;

    color:
        rgba(255,255,255,.55);

    font-size: var(--font-12);

    line-height: 1.4;
}

/* =========================================================
   FORM PANEL
========================================================= */

.form-panel {
    min-height: 760px;
    background: #fdf9f5;
    display: flex;
    flex-direction: column;
    padding: 55px;
}


/* =========================================================
   FORM WRAPPER
========================================================= */

.form-wrapper {
    width: min(100%, 480px);
    margin: auto;
}


/* =========================================================
   MOBILE LOGO
========================================================= */

.mobile-logo {
    display: none;
}

.mobile-logo img {
    width: 165px;
}


/* =========================================================
   FORM HEADING
========================================================= */

.form-heading {
    margin-bottom: 90px;
}

.form-eyebrow {
    display: block;

    margin-bottom: 12px;

    color: var(--purple-primary);

    font-size: var(--font-12);
    font-weight: var(--weight-700);

    letter-spacing: 2px;
}

.form-heading h2 {

    font-size: var(--font-32);
    line-height: 1.15;

    letter-spacing: -1.5px;

    font-weight: var(--weight-600);

    color: #251d29;
}

.form-heading p {

    margin-top: 10px;

    color: var(--text-soft);

    font-size: var(--font-14);
    line-height: 1.7;
}


/* =========================================================
   SIGN-IN STEPS
========================================================= */

.signin-step {
    display: none;
}

.signin-step.active {
    display: block;

    animation:
        stepFadeIn .35s ease;
}


@keyframes stepFadeIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group {
    margin-bottom: 22px;
}

.form-group label {

    display: block;

    margin-bottom: 9px;

    color: #403844;

    font-size: var(--font-14);
    font-weight: var(--weight-500);
}


/* =========================================================
   MOBILE INPUT
========================================================= */

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: #ffffff;
    box-shadow:0 1px 2px rgba(0,0,0,.02);
    transition: .25s ease;
    margin-bottom: 40px;
}


.input-wrapper:focus-within {

    border-color:
        rgba(90,15,175,.45);

    box-shadow:
        0 0 0 4px
        rgba(90,15,175,.08);
}


/* Country code */

.country-code {

    width: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #514957;

    font-size: var(--font-14);
    font-weight: var(--weight-500);
}


.country-divider {

    width: 1px;
    height: 22px;

    background: #e3dce5;
}


/* Mobile input */

.input-wrapper input {

    flex: 1;

    height: 100%;
    min-width: 0;

    padding:
        0 15px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #281f2b;

    font-size: var(--font-14);
}


.input-wrapper input::placeholder {

    color: #a49ca6;
}


/* =========================================================
   ERROR
========================================================= */

.error-message {

    display: block;

    min-height: 0;

    margin-top: 6px;

    color: var(--danger);

    font-size: var(--font-12);
}


.form-group.has-error
.input-wrapper {

    border-color:
        rgba(201,59,88,.45);

    box-shadow:
        0 0 0 3px
        rgba(201,59,88,.06);
}


/* =========================================================
   SIGN-IN BUTTON
========================================================= */

.signin-button {
    position: relative;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background:var(--purple-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: var(--font-14);
    font-weight: var(--weight-500);
    cursor: pointer;
    overflow: hidden;
    transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}

.signin-button > i {
    font-size: var(--font-14);
    transition: .3s;
}

.signin-button:hover {
    background:var(--purple-dark);
    transform:translateY(-2px);
    box-shadow:0 12px 25px rgba(61,0,117,.18);
}

.signin-button:hover > i {
    transform:translateX(4px);
}

.signin-button.loading {
    pointer-events: none;
    opacity: .85;
}

.button-loader {
    display: none;
}

.signin-button.loading
.button-loader {
    display: inline-block;
}

.signin-button.loading
.button-loader i {
    animation:spin .8s linear infinite;
}

.signin-button.loading
.button-text,
.signin-button.loading
> i {
    display: none;
}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   OTP NOTE
========================================================= */

.otp-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 17px 2px 0;
    color: #8a818d;
    font-size: var(--font-12);
    line-height: 1.6;
}


.otp-note i {

    margin-top: 2px;

    color:
        var(--purple-primary);
}


/* =========================================================
   OTP HEADER
========================================================= */

.otp-header {
    position: relative;
    margin-bottom: 28px;
    text-align: center;
}


.change-mobile {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color:var(--purple-primary);
    font-size: var(--font-16);
    font-weight: var(--weight-500);
    cursor: pointer;
}


.change-mobile:hover {
    text-decoration: underline;
}


.change-mobile i {
    font-size: var(--font-12);
}


.otp-sent-text {

    margin: 0 0 5px;

    color: #827985;

    font-size: var(--font-12);
}


.otp-mobile {

    color: #302736;

    font-size: var(--font-14);

    font-weight: var(--weight-600);

    letter-spacing: .3px;
}


/* =========================================================
   OTP INPUT
========================================================= */

.otp-input-wrapper {

    display: flex;

    align-items: center;
    justify-content: center;

    height: 62px;

    border: 1px solid transparent;

    border-radius: 13px;

    background: #fff;

    box-shadow:
        0 1px 2px rgba(0,0,0,.02);

    transition: .25s ease;
}


.otp-input-wrapper:focus-within {

    border-color:
        rgba(90,15,175,.45);

    box-shadow:
        0 0 0 4px
        rgba(90,15,175,.08);
}


.otp-input-wrapper input {

    width: 100%;

    height: 100%;

    padding: 0 15px;

    border: 0;
    outline: 0;

    background: transparent;

    text-align: center;

    color:
        var(--purple-dark);

    font-family: "Poppins", sans-serif;

    font-size: var(--font-28);

    font-weight: var(--weight-600);

    letter-spacing: 12px;
}


.otp-input-wrapper input::placeholder {

    color: #c5bdc8;

    letter-spacing: 9px;
}


.form-group.has-error
.otp-input-wrapper {

    border-color:
        rgba(201,59,88,.45);

    box-shadow:
        0 0 0 3px
        rgba(201,59,88,.06);
}


/* =========================================================
   RESEND OTP
========================================================= */

.resend-wrapper {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 22px;

    color: #817883;

    font-size: var(--font-12);
}


.resend-button {

    padding: 0;

    border: 0;

    background: transparent;

    color:
        var(--purple-primary);

    font-family: "Poppins", sans-serif;

    font-size: var(--font-12);

    font-weight: var(--weight-600);

    cursor: pointer;
}


.resend-button:hover:not(:disabled) {

    text-decoration: underline;
}


.resend-button:disabled {

    color: #aaa2ad;

    cursor: not-allowed;
}


.resend-timer {

    min-width: 25px;

    color: #9b929e;

    font-size: var(--font-12);
}


/* =========================================================
   NEW USER
========================================================= */

.new-user-box {

    margin-top: 32px;

    padding-top: 25px;

    border-top:
        1px solid #e8e0e8;

    text-align: center;

    color: #817883;

    font-size: var(--font-12);

    line-height: 1.6;
}


.new-user-box a {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-left: 4px;

    color:
        var(--purple-primary);

    font-weight: var(--weight-600);

    text-decoration: none;
}


.new-user-box a i {

    font-size: var(--font-12);

    transition: .25s ease;
}


.new-user-box a:hover {

    text-decoration: underline;
}


.new-user-box a:hover i {

    transform:
        translateX(3px);
}


/* =========================================================
   FORM FOOTER
========================================================= */

.form-footer {
    width: min(100%, 480px);
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e8e0e8;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #a29aa4;
    font-size: var(--font-12);
}

.form-footer a {
    color: var(--purple-primary);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 600px) {

    .form-panel {

        padding: 35px 22px;
    }


    .form-wrapper {

        width: 100%;
    }


    .form-heading h2 {

        font-size: var(--font-28);
    }


    .form-footer {

        flex-direction: column;

        align-items: center;

        text-align: center;

        gap: 8px;
    }


    .new-user-box {

        font-size: var(--font-12);
    }

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .signin-container {

        grid-template-columns:
            52% 48%;
    }


    .visual-content {

        padding:
            40px;
    }


    .visual-message :is(h1, h2) {

        font-size:
            var(--font-48);
    }


    .form-panel {

        padding:
            40px;
    }

}


@media (max-width: 800px) {

    .signin-page {

        padding: 0;
    }


    .signin-container {

        min-height: 100vh;

        border-radius: 0;

        border: 0;

        grid-template-columns: 1fr;

        box-shadow: none;
    }


    .visual-panel {

        min-height:
            460px;

        height:
            52vh;
    }


    .visual-content {

        min-height:
            460px;

        padding:
            30px;
    }


    .brand-logo img {

        width:
            170px;
    }


    .visual-message {

        padding-top:
            20px;
    }


    .visual-message :is(h1, h2) {

        font-size:
            clamp(var(--font-40), 9vw, var(--font-64));

        letter-spacing:
            -2px;
    }


    .visual-message p {

        font-size:
            var(--font-12);

        max-width:
            500px;
    }


    .community-stat {

        min-height:
            75px;

        padding:
            15px;
    }


    .community-stat:first-child {

        padding-left:
            0;
    }


    .community-stat strong {

        font-size:
            var(--font-20);
    }


    .community-stat span {

        font-size:
            var(--font-12);
    }


    .form-panel {

        min-height:
            auto;

        padding:
            55px 30px 35px;
    }


    .form-wrapper {

        width:
            min(100%, 500px);
    }


    .mobile-logo {

        display:
            block;

        margin-bottom:
            35px;
    }

}


@media (max-width: 500px) {

    .visual-panel {

        min-height:
            430px;
    }


    .visual-content {

        min-height:
            430px;

        padding:
            25px 22px;
    }


    .brand-logo img {

        width:
            145px;
    }


    .visual-message :is(h1, h2) {

        font-size:
            var(--font-40);

        line-height:
            1.05;
    }


    .visual-message p {

        display:
            none;
    }


    .visual-bottom {

        grid-template-columns:
            repeat(3, 1fr);
    }


    .community-stat {

        padding:
            10px;
    }


    .community-stat strong {

        font-size:
            var(--font-18);
    }


    .community-stat span {

        font-size:
            var(--font-12);
    }


    .form-panel {

        padding:
            45px 22px 30px;
    }


    .form-heading h2 {

        font-size:
            var(--font-28);
    }


    .form-footer {

        flex-direction:
            column;

        align-items:
            center;

        text-align:
            center;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;
    }

}



























/* =========================================================
   ANWA — ABSTRACT COMMUNITY BACKGROUND
   Inspired by the left panel visual treatment
   ========================================================= */

.anwa-community-bg {
    --purple-dark: #3D0075;
    --purple-deep: #5A0FAF;
    --purple: #7B3FC0;
    --purple-light: #9B7FD8;
    --lavender: #D1C4E9;

    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            115deg,
            #3d0075 0%,
            #5a0faf 28%,
            #7b3fc0 52%,
            #9b7fd8 76%,
            #cbbbe5 100%
        );
}


/* =========================================================
   SOFT LIGHT / GLOW
   ========================================================= */

.anwa-community-bg::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 900px;
    height: 900px;
    top: -300px;
    right: -180px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, .24) 0%,
            rgba(255, 255, 255, .10) 25%,
            rgba(255, 255, 255, 0) 68%
        );

    filter: blur(8px);

    pointer-events: none;
}


/* =========================================================
   SECONDARY PURPLE GLOW
   ========================================================= */

.anwa-community-bg::after {
    content: "";

    position: absolute;
    z-index: 0;

    width: 700px;
    height: 700px;

    left: -250px;
    bottom: -300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(209, 196, 233, .16) 0%,
            rgba(209, 196, 233, .07) 30%,
            rgba(209, 196, 233, 0) 70%
        );

    filter: blur(15px);

    pointer-events: none;
}


/* =========================================================
   ABSTRACT COMMUNITY PATTERN
   ========================================================= */

.community-network {
    position: absolute;
    inset: 0;

    z-index: 1;

    overflow: hidden;

    pointer-events: none;

    opacity: .75;
}


/* =========================================================
   LARGE ABSTRACT CIRCULAR FORMS
   ========================================================= */

.community-network::before {
    content: "";

    position: absolute;

    width: 900px;
    height: 900px;

    top: -450px;
    left: -120px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.10);

    box-shadow:
        0 0 0 70px rgba(255,255,255,.035),
        0 0 0 140px rgba(255,255,255,.025),
        0 0 0 210px rgba(255,255,255,.018);

    transform: rotate(-15deg);
}


/* =========================================================
   COMMUNITY CONNECTION LINES
   ========================================================= */

/* .community-network::after {
    content: "";

    position: absolute;
    inset: 0;

    background: */

        /* diagonal connection */
        /* linear-gradient(
            145deg,
            transparent 47.5%,
            rgba(255,255,255,.10) 47.6%,
            rgba(255,255,255,.10) 47.8%,
            transparent 47.9%
        ),

        linear-gradient(
            25deg,
            transparent 58%,
            rgba(255,255,255,.07) 58.1%,
            rgba(255,255,255,.07) 58.3%,
            transparent 58.4%
        ),

        linear-gradient(
            165deg,
            transparent 35%,
            rgba(255,255,255,.06) 35.1%,
            rgba(255,255,255,.06) 35.3%,
            transparent 35.4%
        );

    opacity: .8;
} */


/* =========================================================
   FLOATING COMMUNITY NODES
   ========================================================= */

.community-node {
    position: absolute;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: rgba(255,255,255,.65);

    box-shadow:
        0 0 0 7px rgba(255,255,255,.06),
        0 0 30px rgba(255,255,255,.15);

    animation: communityFloat 7s ease-in-out infinite;
}

.community-node:nth-child(1) {
    top: 20%;
    left: 18%;
}

.community-node:nth-child(2) {
    top: 35%;
    left: 36%;

    width: 8px;
    height: 8px;

    animation-delay: -2s;
}

.community-node:nth-child(3) {
    top: 18%;
    left: 55%;

    width: 16px;
    height: 16px;

    animation-delay: -4s;
}

.community-node:nth-child(4) {
    top: 58%;
    left: 72%;

    width: 9px;
    height: 9px;

    animation-delay: -1s;
}

.community-node:nth-child(5) {
    top: 72%;
    left: 46%;

    width: 13px;
    height: 13px;

    animation-delay: -5s;
}

.community-node:nth-child(6) {
    top: 43%;
    left: 84%;

    width: 7px;
    height: 7px;

    animation-delay: -3s;
}


@keyframes communityFloat {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -12px, 0);
    }
}


/* =========================================================
   ABSTRACT BUILDINGS / COMMUNITY SILHOUETTE
   ========================================================= */

.community-buildings {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 1;

    height: 180px;

    opacity: .22;

    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;

    pointer-events: none;
}


/* Building shapes */

.community-buildings span {
    display: block;

    width: 75px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.18),
            rgba(255,255,255,.04)
        );

    border: 1px solid rgba(255,255,255,.12);

    border-bottom: 0;

    backdrop-filter: blur(2px);
}


/* Different building heights */

.community-buildings span:nth-child(1) {
    height: 80px;
    width: 90px;
}

.community-buildings span:nth-child(2) {
    height: 130px;
    width: 110px;
}

.community-buildings span:nth-child(3) {
    height: 95px;
    width: 75px;
}

.community-buildings span:nth-child(4) {
    height: 155px;
    width: 125px;
}

.community-buildings span:nth-child(5) {
    height: 110px;
    width: 85px;
}

.community-buildings span:nth-child(6) {
    height: 145px;
    width: 105px;
}

.community-buildings span:nth-child(7) {
    height: 90px;
    width: 80px;
}


/* =========================================================
   CONTENT ABOVE BACKGROUND
   ========================================================= */

.anwa-community-bg > .involve-container {
    position: relative;
    z-index: 3;
}


/* =========================================================
   LIGHT TEXT VERSION
   ========================================================= */

.anwa-community-bg .involve-eyebrow {
    color: rgba(255,255,255,.72);
}

.anwa-community-bg .involve-eyebrow span {
    background: rgba(255,255,255,.7);
}

.anwa-community-bg .involve-header h1,
.anwa-community-bg .involve-section-heading h2,
.anwa-community-bg .volunteer-intro h2 {
    color: #fff;
}

.anwa-community-bg .involve-header h1 em,
.anwa-community-bg .involve-section-heading h2 em,
.anwa-community-bg .volunteer-intro h2 em {
    color: #e4d8f3;
}

.anwa-community-bg .involve-intro p,
.anwa-community-bg .involve-section-heading > p,
.anwa-community-bg .volunteer-intro p {
    color: rgba(255,255,255,.72);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .anwa-community-bg::before {
        width: 600px;
        height: 600px;
    }

    .community-buildings {
        height: 110px;
    }

    .community-buildings span {
        transform: scale(.7);
        transform-origin: bottom;
    }

}