:root {
    --primary: #e2202c;
    --primary-dark: #c91420;
    --primary-soft: #ffedf0;

    --heading: #172033;
    --text: #53627a;
    --muted: #8893a5;

    --border: #d9e0e9;
    --input-background: #ffffff;

    --white: #ffffff;
    --black: #050505;

    --shadow:
        0 12px 35px rgba(21, 30, 50, 0.12);

    --primary-shadow:
        0 14px 30px rgba(226, 32, 44, 0.25);
}

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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--heading);
    background: var(--white);
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    border: 0;
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(560px, 49.5%) 1fr;
    width: 100%;
    min-height: 100vh;
    background: #fff;
}

/* =========================================
   Left panel
========================================= */

.auth-panel {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 13% 86%,
            rgba(226, 32, 44, 0.08) 0,
            rgba(226, 32, 44, 0.08) 80px,
            transparent 81px
        ),
        radial-gradient(
            circle at 7% 91%,
            rgba(226, 32, 44, 0.05) 0,
            rgba(226, 32, 44, 0.05) 140px,
            transparent 141px
        ),
        #ffffff;

    clip-path: polygon(
        0 0,
        100% 0,
        86% 100%,
        0 100%
    );
}

.auth-panel-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    padding:
        clamp(35px, 5vh, 62px)
        clamp(95px, 9vw, 180px)
        45px
        clamp(75px, 8.7vw, 170px);
}

.brand-logo {
    width: clamp(250px, 20vw, 370px);
    margin-bottom: clamp(55px, 8vh, 110px);
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.login-container {
    width: min(100%, 550px);
}

.login-heading {
    margin-bottom: 40px;
}

.login-heading h1 {
    margin-bottom: 10px;
    color: var(--heading);
    font-size: clamp(34px, 2.3vw, 48px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.12;
}

.login-heading p {
    color: #68778f;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
}

.login-form {
    width: 100%;
}

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

.form-group label {
    display: inline-block;
    margin-bottom: 11px;
    color: #334058;
    font-size: 14px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    height: 61px;
    padding: 0 58px;
    color: #1d283c;
    font-size: 16px;
    font-weight: 500;
    background: var(--input-background);
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #a3acba;
    font-weight: 400;
}

.input-wrapper input:hover {
    border-color: #bcc6d4;
}

.input-wrapper input:focus {
    border-color: #f35a65;
    box-shadow:
        0 0 0 3px rgba(226, 32, 44, 0.1),
        0 8px 22px rgba(39, 47, 65, 0.06);
}

.input-wrapper.has-error input {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(226, 32, 44, 0.1);
}

.input-icon {
    position: absolute;
    left: 21px;
    z-index: 2;
    color: #65748b;
    font-size: 22px;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 17px;
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    color: #697890;
    font-size: 22px;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.field-error {
    display: none;
    margin-top: 7px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0 36px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #435069;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.remember-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    color: transparent;
    background: #ffffff;
    border: 1.5px solid #c8d0dc;
    border-radius: 4px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.custom-checkbox i {
    font-size: 14px;
    font-weight: 700;
}

.remember-option input:checked + .custom-checkbox {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}

.remember-option input:focus-visible + .custom-checkbox {
    box-shadow: 0 0 0 3px rgba(226, 32, 44, 0.14);
}

.forgot-password {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;

    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.sign-in-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 58px;
    padding: 0 58px;
    overflow: hidden;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    background:
        linear-gradient(
            100deg,
            #d91825 0%,
            #ea313a 100%
        );
    border-radius: 8px;
    box-shadow: var(--primary-shadow);
    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.sign-in-button::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            110deg,
            transparent 20%,
            rgba(255, 255, 255, 0.18) 48%,
            transparent 76%
        );
    transform: translateX(-110%);
    transition: transform 0.55s ease;
}

.sign-in-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 34px rgba(226, 32, 44, 0.32);
}

.sign-in-button:hover::before {
    transform: translateX(110%);
}

.sign-in-button:active {
    transform: translateY(0);
}

.sign-in-button i {
    position: absolute;
    right: 22px;
    font-size: 25px;
}

.sign-in-button.is-loading {
    pointer-events: none;
    opacity: 0.82;
}

.separator {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin: 29px 0;
}

.separator span {
    display: block;
    height: 1px;
    background: #dce2ea;
}

.separator small {
    color: #728098;
    font-size: 14px;
    font-weight: 500;
}

.google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 100%;
    height: 57px;
    color: #28344a;
    font-size: 15px;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #d8dfe8;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(23, 32, 51, 0.05);
    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.google-button:hover {
    background: #fafbfc;
    border-color: #bcc6d3;
    box-shadow: 0 9px 22px rgba(23, 32, 51, 0.09);
    transform: translateY(-1px);
}

.register-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 34px;
    color: #64728a;
    font-size: 15px;
    font-weight: 500;
}

.register-text a {
    color: var(--primary);
    font-weight: 700;
}

.register-text a:hover {
    text-decoration: underline;
}

/* =========================================
   Left decoration
========================================= */

.auth-decoration-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 145px;
    height: 95px;
    opacity: 0.42;
    background-image:
        radial-gradient(
            circle,
            #ef6670 2px,
            transparent 2.5px
        );
    background-size: 15px 15px;
    mask-image:
        linear-gradient(
            135deg,
            #000,
            transparent 78%
        );
    pointer-events: none;
}

/* =========================================
   Right panel
========================================= */

.visual-panel {
    position: relative;
    min-width: 0;
    min-height: 100vh;
    overflow: hidden;
    background:
        #070707
        url("../img/auth-bg.png")
        center center / cover
        no-repeat;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.23) 0%,
            transparent 30%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.06) 30%,
            rgba(0, 0, 0, 0.04) 55%,
            rgba(0, 0, 0, 0.55) 100%
        );
}

.language-selector {
    position: absolute;
    top: 31px;
    right: 31px;
    z-index: 10;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 145px;
    height: 50px;
    padding: 0 17px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    background: rgba(31, 31, 33, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(14px);
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.language-button:hover {
    background: rgba(46, 46, 48, 0.94);
    border-color: rgba(255, 255, 255, 0.16);
}

.language-button > i:first-child {
    font-size: 20px;
}

.language-button .arrow-icon {
    margin-left: auto;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.language-selector.is-open .arrow-icon {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    display: none;
    width: 155px;
    padding: 7px;
    background: rgba(28, 28, 30, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
}

.language-dropdown button {
    width: 100%;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    background: transparent;
    border-radius: 7px;
    cursor: pointer;
}

.language-dropdown button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* =========================================
   Feature card
========================================= */

.features-card {
    position: absolute;
    right: clamp(30px, 4.2vw, 74px);
    bottom: clamp(35px, 7vh, 85px);
    left: clamp(25px, 3.5vw, 55px);
    z-index: 5;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 142px;
    padding: 29px 27px;

    background:
        linear-gradient(
            100deg,
            rgba(92, 19, 21, 0.92),
            rgba(61, 11, 13, 0.92)
        );

    border: 1px solid rgba(255, 82, 91, 0.18);
    border-radius: 15px;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
}

.feature-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 19px;
    padding: 0 24px;
}

.feature-item:first-child {
    padding-left: 0;
}

.feature-item:last-child {
    padding-right: 0;
}

.feature-item:not(:last-child)::after {
    position: absolute;
    top: 9%;
    right: 0;
    width: 1px;
    height: 82%;
    content: "";
    background:
        linear-gradient(
            transparent,
            rgba(255, 255, 255, 0.22),
            transparent
        );
}

.feature-icon {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    color: #ff3641;
    font-size: 26px;
    background: rgba(40, 4, 7, 0.4);
    border: 1px solid rgba(255, 86, 95, 0.34);
    border-radius: 12px;
    box-shadow:
        inset 0 0 18px rgba(255, 42, 52, 0.07);
}

.feature-content {
    min-width: 0;
}

.feature-content h3 {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.75;
}

/* =========================================
   Laptop screens
========================================= */

@media (max-width: 1450px) {
    .auth-page {
        grid-template-columns: minmax(520px, 48%) 1fr;
    }

    .auth-panel-inner {
        padding:
            42px
            100px
            40px
            90px;
    }

    .brand-logo {
        width: 280px;
        margin-bottom: 30px;
    }

    .login-container {
        width: min(100%, 510px);
    }

    .features-card {
        right: 30px;
        bottom: 45px;
        left: 20px;
        padding: 24px 20px;
    }

    .feature-item {
        gap: 13px;
        padding: 0 15px;
    }

    .feature-icon {
        flex-basis: 45px;
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}

@media (max-width: 1199px) {
    .auth-page {
        grid-template-columns: 52% 48%;
    }

    .auth-panel {
        clip-path: polygon(
            0 0,
            100% 0,
            92% 100%,
            0 100%
        );
    }

    .auth-panel-inner {
        padding:
            37px
            75px
            38px
            55px;
    }

    .brand-logo {
        width: 245px;
        margin-bottom: 55px;
    }

    .login-heading {
        margin-bottom: 30px;
    }

    .login-heading h1 {
        font-size: 35px;
    }

    .input-wrapper input {
        height: 56px;
    }

    .features-card {
        grid-template-columns: 1fr;
        gap: 15px;
        left: 35px;
        right: 25px;
        bottom: 30px;
        padding: 20px;
    }

    .feature-item,
    .feature-item:first-child,
    .feature-item:last-child {
        padding: 0;
    }

    .feature-item:not(:last-child)::after {
        top: auto;
        right: 0;
        bottom: -8px;
        left: 0;
        width: 100%;
        height: 1px;
        background:
            linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.2),
                transparent
            );
    }

    .feature-content h3 {
        margin-bottom: 3px;
    }
}

/* =========================================
   Tablet and mobile
========================================= */

@media (max-width: 991px) {
    body {
        background:
            linear-gradient(
                rgba(0, 0, 0, 0.58),
                rgba(0, 0, 0, 0.7)
            ),
            url("../images/loginbg.webp")
            center / cover
            fixed;
    }

    .auth-page {
        display: block;
        min-height: 100vh;
        padding: 35px 20px;
        background: transparent;
    }

    .auth-panel {
        width: min(100%, 620px);
        min-height: auto;
        margin: 0 auto;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 22px;
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
        clip-path: none;
    }

    .auth-panel-inner {
        min-height: auto;
        padding: 40px 45px 45px;
    }

    .brand-logo {
        width: 260px;
        margin: 0 auto 47px;
    }

    .login-container {
        width: 100%;
    }

    .visual-panel {
        display: none;
    }
}

@media (max-width: 575px) {
    .auth-page {
        display: flex;
        align-items: center;
        min-height: 100svh;
        padding: 16px;
    }

    .auth-panel {
        border-radius: 17px;
    }

    .auth-panel-inner {
        width: 100%;
        padding: 31px 23px 34px;
    }

    .brand-logo {
        width: min(100%, 235px);
        margin-bottom: 36px;
    }

    .login-heading {
        margin-bottom: 30px;
        text-align: center;
    }

    .login-heading h1 {
        margin-bottom: 8px;
        font-size: 30px;
        letter-spacing: -0.8px;
    }

    .login-heading p {
        font-size: 14px;
    }

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

    .input-wrapper input {
        height: 55px;
        padding-right: 52px;
        padding-left: 51px;
        font-size: 14px;
    }

    .input-icon {
        left: 18px;
        font-size: 20px;
    }

    .password-toggle {
        right: 10px;
    }

    .form-options {
        gap: 13px;
        margin: 24px 0 29px;
    }

    .remember-option,
    .forgot-password {
        font-size: 12px;
    }

    .sign-in-button {
        height: 55px;
        font-size: 15px;
    }

    .separator {
        margin: 25px 0;
    }

    .google-button {
        height: 55px;
        font-size: 14px;
    }

    .register-text {
        margin-top: 27px;
        font-size: 13px;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .auth-page {
        padding: 10px;
    }

    .auth-panel-inner {
        padding: 27px 18px 29px;
    }

    .brand-logo {
        width: 205px;
        margin-bottom: 30px;
    }

    .login-heading h1 {
        font-size: 27px;
    }

    .form-options {
        align-items: flex-start;
    }
}

/* =========================================
   Short desktop screens
========================================= */

@media (min-width: 992px) and (max-height: 850px) {
    .auth-panel-inner {
        padding-top: 30px;
        padding-bottom: 25px;
    }

    .brand-logo {
        width: 250px;
        margin-bottom: 38px;
    }

    .login-heading {
        margin-bottom: 25px;
    }

    .login-heading h1 {
        font-size: 34px;
    }

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

    .input-wrapper input {
        height: 52px;
    }

    .form-options {
        margin: 22px 0 25px;
    }

    .sign-in-button,
    .google-button {
        height: 52px;
    }

    .separator {
        margin: 21px 0;
    }

    .register-text {
        margin-top: 23px;
    }

    .features-card {
        bottom: 25px;
    }
}


.login-error-alert {
    display: none;
    margin-bottom: 24px;
    padding: 14px 16px;
    color: #b4232d;
    background: #fff3f4;
    border: 1px solid #ffc8cc;
    border-left: 4px solid #e2202c;
    border-radius: 9px;
}

.login-error-alert > i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #e2202c;
    font-size: 20px;
}

.login-error-inner {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}
.login-error-content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.login-error-content strong {
    color: #8f1720;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.login-error-content span {
    color: #a23a42;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.login-error-inner > i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #e2202c;
    font-size: 18px;
    line-height: 1;
}
 

.login-error-alert strong {
    color: #8f1720;
    font-size: 14px;
    font-weight: 700;
}

.login-error-alert span {
    color: #a23a42;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.field-error {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #e2202c;
    font-size: 12px;
    font-weight: 500;
}

.field-error i {
    flex: 0 0 auto;
    font-size: 14px;
}

.input-wrapper.has-error input {
    color: #8f1720;
    background: #fffafb;
    border-color: #e2202c;
    box-shadow: 0 0 0 3px rgba(226, 32, 44, 0.09);
}

.input-wrapper.has-error .input-icon,
.input-wrapper.has-error .password-toggle {
    color: #e2202c;
}

.sign-in-button:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.google-button-wrapper {
    width: 100%;
    min-height: 48px;
}

#googleLoginButton {
    width: 100%;

    > div {
        width: 100% !important;
    }

    iframe {
        width: 100% !important;
    }

    &.is-loading {
        opacity: 0.65;
        cursor: wait;
    }
}

 
