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

.login-page {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 38px 24px;
    background:
        radial-gradient(
            circle at 25% 15%,
            rgba(84, 189, 232, 0.13),
            transparent 32%
        ),
        radial-gradient(
            circle at 80% 85%,
            rgba(79, 70, 229, 0.09),
            transparent 30%
        ),
        #f7f9fd;
    box-sizing: border-box;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    width: min(850px, 100%);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid #e0e6ef;
    border-radius: 19px;
    background: #ffffff;
    box-shadow:
        0 28px 70px rgba(22, 31, 53, 0.13),
        0 6px 20px rgba(22, 31, 53, 0.05);
}


/* ======================================
   BRAND PANEL
====================================== */

.login-brand-panel {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(98, 195, 235, 0.28),
            transparent 35%
        ),
        linear-gradient(145deg, #151d31, #253252);
    color: #ffffff;
    box-sizing: border-box;
}

.login-brand-logo {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-self: flex-start;
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.94);
}

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

.login-brand-content {
    position: relative;
    z-index: 3;
    max-width: 330px;
    margin: 50px 0;
}

.login-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.09);
    color: #79ceef;
    font-size: 16px;
    backdrop-filter: blur(8px);
}

.login-brand-content h2 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.login-brand-content > p {
    margin: 10px 0 0;
    color: #b9c3d3;
    font-size: 10px;
    line-height: 1.75;
}

.login-brand-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 27px;
}

.login-brand-features > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d2d9e5;
    font-size: 9px;
    font-weight: 550;
}

.login-brand-features i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(94, 205, 150, 0.15);
    color: #70d59e;
    font-size: 7px;
}

.login-brand-decoration span {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
}

.login-brand-decoration span:nth-child(1) {
    right: -110px;
    bottom: -100px;
    width: 300px;
    height: 300px;
}

.login-brand-decoration span:nth-child(2) {
    right: -55px;
    bottom: -45px;
    width: 190px;
    height: 190px;
}

.login-brand-decoration span:nth-child(3) {
    top: 120px;
    left: -100px;
    width: 210px;
    height: 210px;
}


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

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px;
    background: #ffffff;
    box-sizing: border-box;
}

.login-form-container {
    width: 100%;
    max-width: 350px;
}

.login-mobile-logo {
    display: none;
    margin-bottom: 28px;
}

.login-mobile-logo img {
    width: auto;
    height: 35px;
}

.login-header {
    margin-bottom: 26px;
}

.login-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #4f46e5;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.login-header h1 {
    margin: 0;
    color: #151c2e;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.login-header p {
    margin: 7px 0 0;
    color: #8791a4;
    font-size: 10px;
    line-height: 1.65;
}


/* ======================================
   FLASH MESSAGES
====================================== */

.login-messages {
    margin-bottom: 17px;
}

.login-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #d9e4f5;
    border-radius: 8px;
    background: #f1f6ff;
    color: #41699d;
    font-size: 9px;
    line-height: 1.5;
}

.login-message.success {
    border-color: #cbead5;
    background: #effaf3;
    color: #34774b;
}

.login-message.error,
.login-message.danger {
    border-color: #f1d0d0;
    background: #fff3f3;
    color: #b04646;
}

.login-message.warning {
    border-color: #f0dfb7;
    background: #fff9e9;
    color: #956b18;
}


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

.login-form-group {
    margin-bottom: 17px;
}

.login-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #445066;
    font-size: 10px;
    font-weight: 600;
}

.login-password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.login-password-label a {
    margin-bottom: 6px;
    color: #4f46e5;
    font-size: 9px;
    font-weight: 600;
    text-decoration: none;
}

.login-password-label a:hover {
    text-decoration: underline;
}

.login-input-wrapper {
    position: relative;
}

.login-input-wrapper > span {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #98a2b4;
    font-size: 11px;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input-wrapper input {
    display: block;
    width: 100%;
    height: 43px;
    padding: 0 42px 0 37px;
    border: 1px solid #dce3ed;
    border-radius: 9px;
    outline: none;
    background: #ffffff;
    color: #172033;
    font-family: inherit;
    font-size: 11px;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.login-input-wrapper input::placeholder {
    color: #adb5c3;
}

.login-input-wrapper input:focus {
    border-color: #6f70e8;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.09);
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #8d97aa;
    font-size: 11px;
    cursor: pointer;
    transform: translateY(-50%);
}

.login-password-toggle:hover {
    background: #f0f2f7;
    color: #4f46e5;
}


/* ======================================
   ERRORS
====================================== */

.login-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #f0cece;
    border-radius: 8px;
    background: #fff3f3;
    color: #b24343;
    font-size: 9px;
    line-height: 1.5;
}


/* ======================================
   SUBMIT
====================================== */

.login-submit {
    display: inline-flex;
    width: 100%;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 2px;
    padding: 0 18px;
    border: 1px solid #151d31;
    border-radius: 9px;
    background: #151d31;
    color: #ffffff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(21, 29, 49, 0.16);
    transition: 0.2s ease;
}

.login-submit:hover {
    background: #26334f;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(21, 29, 49, 0.21);
}

.login-footer {
    margin: 22px 0 0;
    color: #8993a5;
    font-size: 9px;
    text-align: center;
}

.login-footer a {
    margin-left: 3px;
    color: #4f46e5;
    font-weight: 650;
    text-decoration: none;
}

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


/* ======================================
   TABLET
====================================== */

@media (max-width: 760px) {
    .login-page {
        align-items: flex-start;
        padding: 28px 18px;
    }

    .login-shell {
        display: block;
        width: min(470px, 100%);
        min-height: auto;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        padding: 42px 36px;
    }

    .login-form-container {
        max-width: none;
    }

    .login-mobile-logo {
        display: block;
    }
}


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

@media (max-width: 480px) {
    .login-page {
        min-height: 100svh;
        padding: 14px;
    }

    .login-shell {
        border-radius: 15px;
    }

    .login-form-panel {
        padding: 29px 20px;
    }

    .login-mobile-logo {
        margin-bottom: 24px;
    }

    .login-mobile-logo img {
        height: 32px;
    }

    .login-header {
        margin-bottom: 23px;
    }

    .login-header h1 {
        font-size: 23px;
    }

    .login-input-wrapper input {
        height: 44px;
        font-size: 11px;
    }

    .login-submit {
        min-height: 44px;
    }
}

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

.register-shell {
    min-height: 570px;
}

.register-form-panel {
    padding-top: 38px;
    padding-bottom: 38px;
}

.register-page .login-header {
    margin-bottom: 22px;
}

.register-page .login-form-group {
    margin-bottom: 14px;
}

.register-password-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 7px 0 0;
    color: #8a94a6;
    font-size: 8px;
    line-height: 1.5;
}

.register-password-note i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #6472dc;
    font-size: 8px;
}

.register-password-note span {
    min-width: 0;
}


/* ======================================
   TABLET
====================================== */

@media (max-width: 760px) {
    .register-shell {
        min-height: auto;
    }

    .register-form-panel {
        padding: 38px 36px;
    }
}


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

@media (max-width: 480px) {
    .register-form-panel {
        padding: 27px 20px;
    }

    .register-page .login-header {
        margin-bottom: 20px;
    }

    .register-page .login-form-group {
        margin-bottom: 13px;
    }
}

/* ======================================
   FORGOT PASSWORD
====================================== */

.nx-reset-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 112px);
    overflow: hidden;
    padding: 55px 20px;
    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(88, 184, 232, 0.15),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #ffffff,
            #f8faff
        );
    box-sizing: border-box;
}

.nx-reset-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(79, 94, 232, 0.13),
        rgba(88, 184, 232, 0.07) 45%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.nx-reset-card {
    position: relative;
    z-index: 2;
    width: min(430px, 100%);
    padding: 38px;
    border: 1px solid #e1e7f0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 28px 65px rgba(29, 42, 72, 0.12),
        0 5px 15px rgba(29, 42, 72, 0.04);
    box-sizing: border-box;
}

.nx-reset-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 18px;
    border-radius: 13px;
    background: linear-gradient(
        135deg,
        #4f5ee8,
        #58b8e8
    );
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 11px 25px rgba(79, 94, 232, 0.23);
}

.nx-reset-heading {
    text-align: center;
}

.nx-reset-heading > span {
    display: inline-block;
    margin-bottom: 7px;
    color: #4f5ee8;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.nx-reset-heading h1 {
    margin: 0;
    color: #141b2d;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.nx-reset-heading p {
    margin: 10px auto 0;
    color: #7d889d;
    font-size: 10px;
    line-height: 1.7;
}

.nx-reset-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.nx-reset-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid #f0d5d5;
    border-radius: 9px;
    background: #fff5f5;
    color: #b45353;
    font-size: 9px;
    line-height: 1.5;
}

.nx-reset-message.success {
    border-color: #ccead6;
    background: #f0fbf4;
    color: #388357;
}

.nx-reset-message i {
    padding-top: 2px;
}

#forgot-password-form {
    margin-top: 25px;
}

.nx-reset-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #465269;
    font-size: 9px;
    font-weight: 650;
}

.nx-reset-input {
    position: relative;
}

.nx-reset-input > i {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #939daf;
    font-size: 11px;
    transform: translateY(-50%);
    pointer-events: none;
}

.nx-reset-input input {
    width: 100%;
    height: 45px;
    padding: 0 14px 0 39px;
    border: 1px solid #dce3ed;
    border-radius: 10px;
    outline: none;
    background: #fbfcff;
    color: #253047;
    font-family: inherit;
    font-size: 10px;
    box-sizing: border-box;
    transition: 0.2s ease;
}

.nx-reset-input input::placeholder {
    color: #a3acba;
}

.nx-reset-input input:focus {
    border-color: #7682eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 94, 232, 0.09);
}

.nx-reset-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 45px;
    margin-top: 15px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #151d31;
    color: #ffffff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 11px 25px rgba(79, 94, 232, 0.21);
    transition: 0.2s ease;
}

.nx-reset-button:hover {
    background: #253047;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(20, 27, 45, 0.24);
}

.nx-reset-button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.nx-reset-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
    color: #69758a;
    font-size: 9px;
    font-weight: 600;
    text-decoration: none;
}

.nx-reset-back:hover {
    color: #4f5ee8;
}


/* MOBILE */

@media (max-width: 600px) {
    .nx-reset-page {
        align-items: flex-start;
        min-height: calc(100vh - 112px);
        padding: 35px 15px 45px;
    }

    .nx-reset-card {
        padding: 30px 23px;
        border-radius: 15px;
    }

    .nx-reset-heading h1 {
        font-size: 22px;
    }

    .nx-reset-input input {
        font-size: 16px;
    }
}

/* CHANGE PASSWORD */

.nx-password-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.nx-password-logo img {
    display: block;
    width: auto;
    height: 38px;
}

.nx-password-confirm {
    margin-top: 15px;
}

@media (max-width: 600px) {
    .nx-password-logo {
        margin-bottom: 21px;
    }

    .nx-password-logo img {
        height: 34px;
    }
}