/* =========================================================
   BORN REGAL - PREMIUM LOGIN
   Responsive:
   Small Mobile   : 320 × 568
   Mobile         : 360 × 800
   Tablet         : 768 × 1024
   Laptop         : 1366 × 768
   Large Laptop   : 1440 × 900
   Desktop        : 1920 × 1080
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f7f7f5;
    color: #111;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 48px 24px;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(200, 167, 78, 0.08),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 90%,
            rgba(0, 0, 0, 0.025),
            transparent 35%
        ),
        #f7f7f5;
}


/* =========================================================
   MAIN LOGIN CARD
   ========================================================= */

.login-box {
    position: relative;

    width: 100%;
    max-width: 500px;

    padding: 50px 54px 40px;

    text-align: center;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid #dedede;
    border-radius: 12px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.075),
        0 4px 14px rgba(0, 0, 0, 0.035);

    overflow: hidden;

    transition:
        box-shadow 0.35s ease,
        transform 0.35s ease;
}


/* Premium gold top line */

.login-box::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        #b9943d,
        #c8a74e,
        #d8bc72,
        #c8a74e,
        #b9943d
    );
}


/* =========================================================
   LOGO
   ========================================================= */

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 28px;

    text-decoration: none;

    transition: transform 0.3s ease;
}

.login-logo img {
    display: block;

    width: 112px;
    max-width: 100%;
    height: auto;

    object-fit: contain;
}

.login-logo:hover {
    transform: translateY(-2px);
}


/* =========================================================
   HEADING
   ========================================================= */

.login-heading {
    width: 100%;
    margin-bottom: 29px;
}

.login-heading h1 {
    margin: 0 0 8px;

    color: #111;

    font-size: 35px;
    line-height: 1.2;
    font-weight: 600;

    letter-spacing: -0.9px;
}

.login-heading p {
    max-width: 360px;

    margin: 0 auto;

    color: #777;

    font-size: 13px;
    line-height: 1.7;
    font-weight: 400;
}


/* =========================================================
   FORM
   ========================================================= */

.login-form-box {
    width: 100%;

    padding: 0;

    border: 0;
    background: transparent;

    text-align: left;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {
    width: 100%;
    margin-bottom: 19px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;

    margin: 0 0 8px;

    color: #222;

    font-size: 12.5px;
    line-height: 1.5;
    font-weight: 500;

    letter-spacing: 0.05px;
}


/* =========================================================
   STANDARD INPUT
   Name / Email / etc.
   ========================================================= */

.form-group > input {
    display: block;

    width: 100%;
    height: 55px;

    padding: 0 16px;

    border: 1px solid #d5d5d5;
    border-radius: 6px;

    outline: none;

    background: #fff;
    color: #111;

    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 400;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.form-group > input:hover {
    border-color: #aaa;
}

.form-group > input:focus {
    border-color: #111;

    box-shadow:
        0 0 0 3px rgba(200, 167, 78, 0.12);

    background: #fff;
}

.form-group > input::placeholder {
    color: #999;
    opacity: 1;
}

.form-group > input:focus::placeholder {
    color: #bbb;
}


/* =========================================================
   MOBILE INPUT
   ========================================================= */

.mobile-input {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 55px;

    background: #fff;

    border: 1px solid #d5d5d5;
    border-radius: 6px;

    overflow: hidden;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.mobile-input:hover {
    border-color: #aaa;
}

.mobile-input:focus-within {
    border-color: #111;

    box-shadow:
        0 0 0 3px rgba(200, 167, 78, 0.12);
}


/* =========================================================
   COUNTRY CODE
   ========================================================= */

.country-code {
    flex: 0 0 auto;

    height: 100%;

    display: flex;
    align-items: center;

    padding: 0 16px;

    background: #fafafa;

    border-right: 1px solid #ddd;

    color: #444;

    font-size: 13px;
    font-weight: 500;

    white-space: nowrap;
}


/* =========================================================
   MOBILE NUMBER INPUT
   ========================================================= */

.mobile-input input {
    flex: 1;

    width: 100%;
    min-width: 0;
    height: 100%;

    padding: 0 16px;

    border: 0;
    outline: 0;

    background: transparent;
    color: #111;

    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
}

.mobile-input input::placeholder {
    color: #999;
}

.mobile-input input:focus::placeholder {
    color: #bbb;
}


/* =========================================================
   TERMS CHECKBOX
   ========================================================= */

.terms-check {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    width: 100%;

    margin-top: 18px;
    padding: 0 1px;
}


/* Custom checkbox */

.terms-check input {
    appearance: none;
    -webkit-appearance: none;

    position: relative;

    flex: 0 0 17px;

    width: 17px;
    height: 17px;

    margin: 2px 0 0;

    border: 1px solid #c8c8c8;
    border-radius: 3px;

    background: #fff;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.terms-check input:hover {
    border-color: #c8a74e;
}

.terms-check input:active {
    transform: scale(0.94);
}

.terms-check input:checked {
    background: #111;
    border-color: #111;
}

.terms-check input:checked::after {
    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 5px;
    height: 9px;

    border: solid #fff;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}


/* Terms text */

.terms-check label {
    margin: 0;

    color: #777;

    font-size: 10.5px;
    line-height: 1.7;
    font-weight: 400;

    cursor: pointer;
}

.terms-check a {
    color: #222;

    font-weight: 500;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;

    transition:
        color 0.2s ease;
}

.terms-check a:hover {
    color: #c8a74e;
}


/* =========================================================
   BUTTON WRAPPER
   ========================================================= */

.button-wrapper {
    display: flex;
    justify-content: center;

    width: 100%;

    margin-top: 26px;
}


/* =========================================================
   SEND OTP BUTTON
   ========================================================= */

.send-otp-btn {
    width: 235px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 1px solid #111;
    border-radius: 5px;

    background: #111;
    color: #fff;

    font-family: 'Poppins', sans-serif;

    font-size: 12.5px;
    font-weight: 600;

    letter-spacing: 0.2px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
}

.send-otp-btn i {
    font-size: 10.5px;

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.send-otp-btn:not(:disabled):hover {
    background: #c8a74e;
    border-color: #c8a74e;

    box-shadow:
        0 9px 24px rgba(200, 167, 78, 0.23);
}

.send-otp-btn:not(:disabled):hover i {
    transform: translateX(5px);
}

.send-otp-btn:not(:disabled):active {
    transform: scale(0.985);
}

.send-otp-btn:disabled {
    background: #e4e4e4;
    border-color: #e4e4e4;

    color: #999;

    cursor: not-allowed;

    box-shadow: none;
}


/* =========================================================
   LOGIN MESSAGE
   ========================================================= */

#loginMessage {
    min-height: 18px;

    margin-top: 13px;

    text-align: center;

    font-size: 11.5px;
    line-height: 1.5;
}

.error-message {
    color: #c0392b;
}


/* =========================================================
   SECURE LOGIN
   ========================================================= */

.secure-login {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 23px;
    padding-top: 18px;

    border-top: 1px solid #eeeeee;

    color: #999;

    font-size: 10.5px;
    line-height: 1.5;
}

.secure-login i {
    color: #c8a74e;
    font-size: 11px;
}


/* =========================================================
   CARD HOVER
   ========================================================= */

.login-box:hover {
    box-shadow:
        0 28px 78px rgba(0, 0, 0, 0.085),
        0 4px 14px rgba(0, 0, 0, 0.035);
}


/* =========================================================
   SMALL MOBILE
   320 × 568
   ========================================================= */

@media (max-width: 340px) {

    .login-page {
        min-height: 100vh;
        min-height: 100dvh;

        align-items: center;

        padding: 16px 10px;
    }

    .login-box {
        max-width: 300px;

        padding: 28px 18px 24px;

        border-radius: 8px;
    }

    .login-box::before {
        height: 2px;
    }

    .login-logo {
        margin-bottom: 17px;
    }

    .login-logo img {
        width: 78px;
    }

    .login-heading {
        margin-bottom: 19px;
    }

    .login-heading h1 {
        margin-bottom: 5px;

        font-size: 24px;
        letter-spacing: -0.5px;
    }

    .login-heading p {
        font-size: 9.5px;
        line-height: 1.55;
    }

    .form-group {
        margin-bottom: 13px;
    }

    .form-group label {
        margin-bottom: 5px;

        font-size: 10px;
    }

    .form-group > input,
    .mobile-input {
        height: 45px;
        border-radius: 5px;
    }

    .form-group > input {
        padding: 0 11px;
        font-size: 11px;
    }

    .country-code {
        padding: 0 10px;
        font-size: 10.5px;
    }

    .mobile-input input {
        padding: 0 10px;
        font-size: 11px;
    }

    .terms-check {
        gap: 7px;
        margin-top: 12px;
    }

    .terms-check input {
        flex-basis: 14px;

        width: 14px;
        height: 14px;
    }

    .terms-check input:checked::after {
        left: 4px;
        top: 1px;

        width: 4px;
        height: 8px;
    }

    .terms-check label {
        font-size: 8.5px;
        line-height: 1.5;
    }

    .button-wrapper {
        margin-top: 17px;
    }

    .send-otp-btn {
        width: 100%;
        height: 44px;

        font-size: 10.5px;
    }

    .send-otp-btn i {
        font-size: 9px;
    }

    #loginMessage {
        min-height: 14px;
        margin-top: 8px;

        font-size: 9px;
    }

    .secure-login {
        gap: 5px;

        margin-top: 14px;
        padding-top: 12px;

        font-size: 8.5px;
    }

    .secure-login i {
        font-size: 9px;
    }
}


/* =========================================================
   MOBILE
   360 × 800
   ========================================================= */

@media (min-width: 341px) and (max-width: 576px) {

    .login-page {
        min-height: 100vh;
        min-height: 100dvh;

        padding: 20px 14px;
    }

    .login-box {
        max-width: 100%;

        padding: 34px 23px 29px;

        border-radius: 9px;
    }

    .login-logo {
        margin-bottom: 21px;
    }

    .login-logo img {
        width: 91px;
    }

    .login-heading {
        margin-bottom: 23px;
    }

    .login-heading h1 {
        margin-bottom: 6px;

        font-size: 29px;
        letter-spacing: -0.7px;
    }

    .login-heading p {
        font-size: 10.5px;
        line-height: 1.6;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        margin-bottom: 6px;
        font-size: 11px;
    }

    .form-group > input,
    .mobile-input {
        height: 50px;
    }

    .form-group > input {
        padding: 0 13px;
        font-size: 12px;
    }

    .country-code {
        padding: 0 12px;
        font-size: 11.5px;
    }

    .mobile-input input {
        padding: 0 13px;
        font-size: 12px;
    }

    .terms-check {
        gap: 8px;
        margin-top: 15px;
    }

    .terms-check label {
        font-size: 9.5px;
        line-height: 1.6;
    }

    .button-wrapper {
        margin-top: 21px;
    }

    .send-otp-btn {
        width: 100%;
        max-width: 235px;
        height: 48px;

        font-size: 11.5px;
    }

    #loginMessage {
        margin-top: 10px;
        font-size: 10px;
    }

    .secure-login {
        margin-top: 17px;
        padding-top: 14px;

        font-size: 9.5px;
    }

    .secure-login i {
        font-size: 10px;
    }
}


/* =========================================================
   TABLET
   768 × 1024
   ========================================================= */

@media (min-width: 577px) and (max-width: 991px) {

    .login-page {
        padding: 40px 24px;
    }

    .login-box {
        max-width: 475px;

        padding: 46px 45px 37px;
    }

    .login-logo {
        margin-bottom: 25px;
    }

    .login-logo img {
        width: 105px;
    }

    .login-heading {
        margin-bottom: 27px;
    }

    .login-heading h1 {
        font-size: 33px;
    }

    .login-heading p {
        font-size: 12px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group > input,
    .mobile-input {
        height: 54px;
    }

    .button-wrapper {
        margin-top: 25px;
    }
}


/* =========================================================
   LAPTOP
   1366 × 768
   ========================================================= */

@media (min-width: 992px) and (max-width: 1399px) {

    .login-page {
        padding: 38px 24px;
    }

    .login-box {
        max-width: 490px;

        padding: 46px 52px 38px;
    }

    .login-logo {
        margin-bottom: 25px;
    }

    .login-logo img {
        width: 108px;
    }

    .login-heading {
        margin-bottom: 27px;
    }

    .login-heading h1 {
        font-size: 34px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .button-wrapper {
        margin-top: 24px;
    }

    .secure-login {
        margin-top: 21px;
        padding-top: 17px;
    }
}


/* =========================================================
   LARGE LAPTOP
   1440 × 900
   ========================================================= */

@media (min-width: 1400px) and (max-width: 1679px) {

    .login-page {
        padding: 50px 30px;
    }

    .login-box {
        max-width: 500px;

        padding: 51px 55px 41px;
    }

    .login-logo img {
        width: 112px;
    }

    .login-heading h1 {
        font-size: 35px;
    }
}


/* =========================================================
   DESKTOP
   1920 × 1080
   ========================================================= */

@media (min-width: 1680px) {

    .login-page {
        padding: 60px 40px;
    }

    .login-box {
        max-width: 510px;

        padding: 55px 58px 44px;

        border-radius: 13px;
    }

    .login-logo {
        margin-bottom: 30px;
    }

    .login-logo img {
        width: 116px;
    }

    .login-heading {
        margin-bottom: 31px;
    }

    .login-heading h1 {
        font-size: 37px;
    }

    .login-heading p {
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group > input,
    .mobile-input {
        height: 57px;
    }

    .form-group > input,
    .mobile-input input {
        font-size: 14px;
    }

    .country-code {
        padding: 0 18px;
        font-size: 14px;
    }

    .button-wrapper {
        margin-top: 28px;
    }

    .send-otp-btn {
        width: 240px;
        height: 53px;
    }

    .secure-login {
        margin-top: 25px;
        padding-top: 20px;
    }
}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .login-box:hover {
        box-shadow:
            0 24px 70px rgba(0, 0, 0, 0.075),
            0 4px 14px rgba(0, 0, 0, 0.035);
    }

    .login-logo:hover {
        transform: none;
    }

    .send-otp-btn:not(:disabled):hover {
        background: #111;
        border-color: #111;
        box-shadow: none;
    }

    .send-otp-btn:not(:disabled):hover i {
        transform: none;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
