* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(193, 9, 49, .16),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(110, 8, 29, .22),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #300610 0%,
            #57091a 48%,
            #28101a 100%
        );

    color: #fff;
}


/* =====================================================
   BACKGROUND
===================================================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .35;

    background:
        linear-gradient(
            168deg,
            transparent 0%,
            transparent 30%,
            rgba(255,255,255,.045) 30.1%,
            transparent 30.3%
        ),
        linear-gradient(
            8deg,
            transparent 0%,
            transparent 60%,
            rgba(255,255,255,.035) 60.1%,
            transparent 60.3%
        );
}


/* =====================================================
   PAGE
===================================================== */

#page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px 12px;

    position: relative;
    z-index: 1;
}


/* =====================================================
   SMALL LOGIN CONTAINER
===================================================== */

.form-container {
    width: 100%;
    max-width: 390px;

    position: relative;
}


/* =====================================================
   LOGIN CARD
===================================================== */

.form-wrapper {
    width: 100%;

    position: relative;

    padding: 30px 27px 0;

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .98),
            rgba(255, 255, 255, .98)
        );

    border: 1px solid rgba(193, 9, 49, .55);

    box-shadow:
        0 25px 55px rgba(0,0,0,.42),
        0 8px 25px rgba(0,0,0,.25);

    overflow: hidden;
}


/* Gradient top border */

.form-wrapper::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            #6e081d,
            #c10931
        );

    box-shadow:
        0 0 14px rgba(193,9,49,.45);
}


/* Soft corner glow */

.form-wrapper::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -115px;
    right: -100px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(193,9,49,.14),
            transparent 70%
        );

    pointer-events: none;
}


/* =====================================================
   HEADER
===================================================== */

.form-logo-container {
    position: relative;
    z-index: 2;

    text-align: center;

    margin-bottom: 22px;
}


/* Small logo */

.login-logo {
    width: 45px;
    height: 45px;

    margin: 0 auto 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: #fff;

    font-size: 17px;

    background:
        linear-gradient(
            90deg,
            #6e081d,
            #c10931
        );

    box-shadow:
        0 7px 18px rgba(193,9,49,.25);

    border: 1px solid rgba(255,255,255,.10);
}


.form-logo-container h2 {
    margin: 0;

    color: #80747a;

    font-size: 23px;

    line-height: 1.2;

    font-weight: 700;
}


.login-subtitle {
    margin-top: 5px;

    color: #9d8b91;

    font-size: 10px;

    font-weight: 400;
}


/* =====================================================
   FORM
===================================================== */

.login-form {
    width: 100%;

    position: relative;

    z-index: 3;
}


.form-group {
    margin-bottom: 15px;
}


/* =====================================================
   LABEL
===================================================== */

.login-field-label {
    display: block;

    margin-bottom: 5px;

    color: #7f7a7c;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .8px;
}


.login-field-label i {
    color: #c10931;

    font-size: 9px;

    margin-right: 5px;
}


/* =====================================================
   INPUT BOX
===================================================== */

.login-input-box {
    width: 100%;

    position: relative;
}


/* Input icons */

#userid-login-field
.login-input-box::before {
    content: "\f007";
}

#password-login-field
.login-input-box::before {
    content: "\f023";
}


.login-input-box::before {
    position: absolute;

    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    z-index: 2;

    font-family:
        "Font Awesome 6 Free";

    font-weight: 900;

    font-size: 12px;

    color: #846a72;

    pointer-events: none;

    transition: .2s ease;
}


/* =====================================================
   INPUT
===================================================== */

.form-input {
    width: 100%;

    height: 48px;

    padding:
        0 45px 0 40px;

    border: 1px solid #eadde0;

    outline: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #f5f6fb,
            #eceff7
        );

    color: #292127;

    font-size: 13px;

    font-weight: 500;

    box-shadow:
        0 3px 8px rgba(0,0,0,.10);

    transition: .2s ease;
}


.form-input::placeholder {
    color: #898087;
}


.form-input:hover {
    background: #fff;

    border-color: #dbc7cc;
}


.form-input:focus {
    background: #fff;

    border-color: #c10931;

    box-shadow:
        0 0 0 3px rgba(193,9,49,.10),
        0 5px 12px rgba(0,0,0,.10);
}


.login-input-box:focus-within::before {
    color: #c10931;

    transform:
        translateY(-50%)
        scale(1.05);
}


/* =====================================================
   PASSWORD EYE
===================================================== */

.password-eye-btn {
    position: absolute;

    right: 5px;
    top: 5px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 9px;

    background: transparent;

    color: #85777c;

    cursor: pointer;

    transition: .2s ease;
}


.password-eye-btn:hover {
    color: #c10931;

    background: rgba(193,9,49,.07);
}


/* =====================================================
   FORGOT
===================================================== */

.login-forgot {
    display: flex;

    justify-content: flex-end;

    margin-top: -1px;

    margin-bottom: 17px;
}


.login-forgot a {
    color: #bd9ba5;

    font-size: 10px;

    font-weight: 600;

    text-decoration: none;

    transition: .2s ease;
}


.login-forgot a:hover {
    color: #c10931;

    text-decoration: underline;
}


/* =====================================================
   LOGIN BUTTON
===================================================== */

.login-submit {
    width: 100%;

    height: 49px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            90deg,
            #6e081d,
            #c10931
        );

    color: #fff;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1.8px;

    cursor: pointer;

    user-select: none;

    box-shadow:
        0 9px 20px rgba(193,9,49,.25);

    transition: .2s ease;
}


.login-submit i {
    font-size: 12px;

    margin-right: 8px !important;
}


.login-submit:not(.button-disabled):hover {
    transform: translateY(-2px);

    filter: brightness(1.06);

    box-shadow:
        0 13px 25px rgba(193,9,49,.32);
}


.login-submit:not(.button-disabled):active {
    transform: translateY(0);
}


.login-submit.button-disabled {
    opacity: .55 !important;

    cursor: not-allowed !important;

    box-shadow: none !important;
}


/* =====================================================
   SECURITY FOOTER
===================================================== */

.login-security {
    margin-top: 20px;

    padding:
        17px 0 19px;

    border-top:
        1px solid
        rgba(255,255,255,.07);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 5px;
}


.security-item {
    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    white-space: nowrap;
}


.security-item i {
    color: #d22a51;

    font-size: 11px;
}


.security-item span {
    color: #80747a;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .2px;
}


/* =====================================================
   POWERED BY
===================================================== */

.powered-by {
    text-align: center;

    margin-top: 17px;

    margin-bottom: 2px;
}


.powered-text {
    color: #b09fa5;

    font-size: 9px;

    margin-bottom: 2px;
}


.brand-name {
    color: #f1e9ec;

    font-size: 23px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: -1px;

    text-shadow:
        0 2px 8px rgba(0,0,0,.2);
}


/* =====================================================
   LOADER
===================================================== */

.loader-container {
    display: none;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 10px;

    color: #a08d94;

    font-size: 9px;
}


.login-loader {
    width: 14px;
    height: 14px;

    border-radius: 50%;

    border:
        2px solid
        rgba(255,255,255,.12);

    border-top-color: #c10931;

    animation:
        loginSpin .7s linear infinite;
}


@keyframes loginSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =====================================================
   ERROR
===================================================== */

.has-error .form-input,
.form-input.error {
    border-color: #c10931 !important;

    background: #fff5f7 !important;

    box-shadow:
        0 0 0 3px
        rgba(193,9,49,.08) !important;
}


.has-error .login-input-box::before {
    color: #c10931 !important;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    #page {
        padding: 14px 10px;
    }

    .form-container {
        max-width: 360px;
    }

    .form-wrapper {
        padding: 26px 19px 0;

        border-radius: 22px;
    }

    .form-wrapper::before {
        border-radius: 22px;
    }

    .form-logo-container {
        margin-bottom: 19px;
    }

    .login-logo {
        width: 41px;
        height: 41px;

        font-size: 16px;

        border-radius: 12px;
    }

    .form-logo-container h2 {
        font-size: 21px;
    }

    .login-subtitle {
        font-size: 9px;
    }

    .form-group {
        margin-bottom: 13px;
    }

    .form-input {
        height: 45px;

        font-size: 12px;

        padding-left: 38px;
    }

    .login-input-box::before {
        left: 15px;

        font-size: 11px;
    }

    .password-eye-btn {
        width: 35px;
        height: 35px;

        right: 5px;
        top: 5px;
    }

    .login-forgot {
        margin-bottom: 14px;
    }

    .login-submit {
        height: 46px;

        border-radius: 10px;

        font-size: 12px;
    }

    .login-security {
        margin-top: 17px;

        padding:
            14px 0 16px;
    }

    .security-item {
        gap: 4px;
    }

    .security-item i {
        font-size: 10px;
    }

    .security-item span {
        font-size: 6px;
    }

    .powered-by {
        margin-top: 14px;
    }

    .powered-text {
        font-size: 8px;
    }

    .brand-name {
        font-size: 21px;
    }
}


/* =====================================================
   VERY SMALL SCREEN
===================================================== */

@media (max-width: 360px) {

    #page {
        padding: 8px;
    }

    .form-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

    .form-input {
        height: 43px;
    }

    .login-submit {
        height: 44px;
    }
}


/* =====================================================
   FOCUS
===================================================== */

.form-input:focus-visible,
.password-eye-btn:focus-visible,
.login-submit:focus-visible,
.login-forgot a:focus-visible {
    outline:
        2px solid #c10931;

    outline-offset: 2px;
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}