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

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


/* =========================================
   BODY
========================================= */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8f8f8;
    color: #202020;
}


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

.login-page {
    min-height: 100vh;

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

    padding: 15px 20px;
}


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

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


/* =========================================
   BRAND SECTION
========================================= */

.brand-section {
    text-align: center;
    margin-bottom: 35px;
}


/* Logo */

.erms-logo {
    width: 85px;
    height: 85px;

    margin: 0 auto 12px;

    background: #ff8500;

    border-radius: 22px;

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

    color: white;

    font-size: 32px;
    font-weight: 700;

    letter-spacing: -2px;
}


/* ERMS */
.brand-section {
    text-align: center;
    margin-bottom: 25px;
}


.brand-section h1 {
    color: #e95700;

    font-size: 30px;
    font-weight: 700;

    margin-bottom: 5px;
}


/* Subtitle */

.brand-section p {
    color: #777777;

    font-size: 14px;

    letter-spacing: 0.5px;

    line-height: 1.5;
}


/* =========================================
   WELCOME SECTION
========================================= */

.welcome-section {
    margin-bottom: 22px;
}


.welcome-section h2 {
    font-size: 30px;

    font-weight: 700;

    margin-bottom: 8px;

    color: #202020;
}


.welcome-section p {
    font-size: 17px;

    line-height: 1.5;

    color: #777777;
}


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

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


.form-group label {
    display: block;

    font-size: 16px;

    font-weight: 700;

    margin-bottom: 9px;

    color: #242424;
}


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

.input-wrapper {
    height: 58px;

    width: 100%;

    background: white;

    border: 2px solid #dddddd;

    border-radius: 16px;

    display: flex;

    align-items: center;

    padding: 0 18px;

    transition: 0.2s;
}


.input-wrapper:focus-within {
    border-color: #ff8500;

    box-shadow:
        0 0 0 3px
        rgba(255, 133, 0, 0.10);
}


.country-code {
    font-size: 17px;

    color: #222222;

    margin-right: 15px;

    font-weight: 500;
}


.input-wrapper input {
    border: none;

    outline: none;

    width: 100%;

    height: 100%;

    font-size: 17px;

    color: #333333;

    background: transparent;
}


.input-wrapper input::placeholder {
    color: #555555;
}


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

.password-wrapper {
    height: 55px;

    width: 100%;

    background: white;

    border: 2px solid #dddddd;

    border-radius: 15px;

    display: flex;

    align-items: center;

    padding: 0 14px;

    transition: 0.2s;
}


.password-wrapper:focus-within {
    border-color: #ff8500;

    box-shadow:
        0 0 0 3px
        rgba(255, 133, 0, 0.10);
}


.input-icon {
    font-size: 19px;

    margin-right: 12px;
}


.password-wrapper input {
    flex: 1;

    border: none;

    outline: none;

    height: 100%;

    font-size: 15px;

    letter-spacing: 3px;
}


.password-wrapper input::placeholder {
    color: #333333;

    letter-spacing: 3px;
}


.eye-button {
    border: none;

    background: transparent;

    font-size: 20px;

    cursor: pointer;

    padding: 7px;
}


/* =========================================
   LOGIN OPTIONS
========================================= */

.login-options {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin: 4px 3px 22px;
}


.remember-me {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 15px;

    color: #777777;

    cursor: pointer;
}


.remember-me input {
    display: none;
}


.custom-checkbox {
    width: 24px;
    height: 24px;

    background: white;

    border: 2px solid #dddddd;

    border-radius: 4px;

    position: relative;
}


.remember-me input:checked
+ .custom-checkbox {
    background: #ff8500;

    border-color: #ff8500;
}


.remember-me input:checked
+ .custom-checkbox::after {
    content: "✓";

    position: absolute;

    color: white;

    font-size: 17px;

    font-weight: bold;

    left: 3px;

    top: -1px;
}


.forgot-password {
    color: #e95700;

    font-size: 15px;

    font-weight: 600;

    text-decoration: none;
}


.forgot-password:hover {
    text-decoration: underline;
}


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

.error-message {
    min-height: 55px;

    background: #fff0f0;

    border-radius: 13px;

    color: #c94040;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 10px 15px;

    margin-bottom: 20px;

    font-size: 14px;
}


.error-icon {
    width: 26px;
    height: 26px;

    border: 2px solid #c94040;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: bold;

    flex-shrink: 0;
}


.hidden {
    display: none;
}


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

.sign-in-button {
    width: 100%;

    height: 55px;

    border: none;

    border-radius: 15px;

    background: #ff8500;

    color: white;

    font-size: 18px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 16px;

    transition: 0.2s;
}


.sign-in-button:hover {
    background: #ed7800;
}


.sign-in-button:active {
    transform: scale(0.99);
}


.arrow {
    font-size: 27px;

    font-weight: 400;
}


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

.footer {
    text-align: center;

    margin-top: 25px;

    color: #999999;

    font-size: 11px;

    line-height: 1.6;
}


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

@media (max-width: 700px) {

    .login-page {
        align-items: flex-start;

        padding: 30px 25px;
    }

    .login-container {
        max-width: 520px;
    }

}


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

@media (max-width: 500px) {

    .login-page {
        padding: 25px 24px;
    }


    .brand-section {
        margin-bottom: 50px;
    }


    .erms-logo {
        width: 135px;
        height: 135px;

        border-radius: 34px;

        font-size: 48px;

        margin-bottom: 24px;
    }


    .brand-section h1 {
        font-size: 36px;
    }


    .brand-section p {
        font-size: 17px;
    }


    .welcome-section {
        margin-bottom: 34px;
    }


    .welcome-section h2 {
        font-size: 34px;
    }


    .welcome-section p {
        font-size: 19px;
    }


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


    .form-group label {
        font-size: 19px;
    }


    .input-wrapper,
    .password-wrapper {
        height: 65px;

        border-radius: 19px;
    }


    .input-wrapper input,
    .country-code {
        font-size: 19px;
    }


    .password-wrapper input {
        font-size: 20px;
    }


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


    .remember-me {
        font-size: 17px;
    }


    .custom-checkbox {
        width: 28px;
        height: 28px;
    }


    .forgot-password {
        font-size: 17px;
    }


    .error-message {
        font-size: 15px;

        min-height: 60px;
    }


    .sign-in-button {
        height: 65px;

        border-radius: 19px;

        font-size: 20px;
    }


    .arrow {
        font-size: 30px;
    }

}

/* =========================================================
   TYB MLC LOGIN – BRANDING & REFINED RESPONSIVE UI
   Existing orange/charcoal/light-grey palette retained.
   ========================================================= */

.login-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(255,133,0,.10), transparent 25%),
        radial-gradient(circle at 88% 84%, rgba(233,87,0,.07), transparent 27%),
        linear-gradient(135deg, #fffaf5 0%, #f8f8f8 52%, #fff 100%);
}

.login-page::before,
.login-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255,133,0,.15);
    border-radius: 50%;
    pointer-events: none;
}
.login-page::before {
    width: 420px;
    height: 420px;
    top: -245px;
    right: -130px;
}
.login-page::after {
    width: 310px;
    height: 310px;
    bottom: -205px;
    left: -115px;
}

.login-container {
    max-width: 460px;
    padding: 38px 38px 27px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 25px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 22px 65px rgba(32,32,32,.10);
    backdrop-filter: blur(12px);
}

.brand-section {
    margin-bottom: 26px;
}
.erms-logo {
    width: 76px;
    height: 76px;
    margin-bottom: 13px;
    border-radius: 22px;
    background: linear-gradient(145deg, #ff9b24, #e95700);
    box-shadow: 0 10px 24px rgba(233,87,0,.22);
    font-size: 25px;
    letter-spacing: -1px;
}
.brand-section h1 {
    margin-bottom: 5px;
    color: #e95700;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: 1px;
}
.brand-section p {
    margin-bottom: 0;
    color: #777;
    font-size: 12px;
    line-height: 1.55;
    letter-spacing: .35px;
}
.brand-section .brand-program {
    color: #e95700;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.welcome-section {
    margin-bottom: 22px;
}
.welcome-section h2 {
    font-size: 27px;
    letter-spacing: -.6px;
}
.welcome-section p {
    font-size: 14px;
    line-height: 1.65;
}
.form-group label {
    font-size: 14px;
}
.input-wrapper,
.password-wrapper {
    border-radius: 13px;
    border-width: 1.5px;
}
.input-wrapper:focus-within,
.password-wrapper:focus-within {
    border-color: #ff8500;
    box-shadow: 0 0 0 4px rgba(255,133,0,.10);
}
.sign-in-button {
    border-radius: 13px;
    background: linear-gradient(100deg, #ff950f, #e95700);
    box-shadow: 0 9px 20px rgba(233,87,0,.18);
}
.sign-in-button:hover {
    background: linear-gradient(100deg, #f28700, #d94e00);
    box-shadow: 0 11px 23px rgba(233,87,0,.23);
}
.sign-in-button:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}
.footer {
    margin-top: 22px;
    color: #929292;
    font-size: 10px;
}
.error-message {
    border: 1px solid rgba(201,64,64,.12);
}
@media (max-width: 500px) {
    .login-page {
        align-items: center;
        padding: 22px 16px;
    }
    .login-container {
        max-width: 440px;
        padding: 29px 23px 22px;
        border-radius: 22px;
    }
    .brand-section {
        margin-bottom: 24px;
    }
    .erms-logo {
        width: 68px;
        height: 68px;
        margin-bottom: 11px;
        border-radius: 19px;
        font-size: 23px;
    }
    .brand-section h1 {
        font-size: 27px;
    }
    .brand-section p {
        font-size: 11px;
    }
    .welcome-section h2 {
        font-size: 26px;
    }
    .welcome-section p {
        font-size: 13px;
    }
}


/* =========================================================
   COMPACT LOGIN LAYOUT – KEEP THE COMPLETE FORM IN VIEW
   ========================================================= */
.login-page {
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
    padding: 12px 16px;
}

.login-container {
    max-width: 440px;
    padding: 20px 30px 15px;
    border-radius: 22px;
}

.brand-section {
    margin-bottom: 14px;
}

.erms-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 7px;
    border-radius: 16px;
    font-size: 21px;
}

.brand-section h1 {
    font-size: 24px;
    margin-bottom: 2px;
}

.brand-section p {
    font-size: 11px;
    line-height: 1.35;
}

.brand-section .brand-program {
    font-size: 10px;
    letter-spacing: .8px;
}

.welcome-section {
    margin-bottom: 14px;
}

.welcome-section h2 {
    font-size: 23px;
    margin-bottom: 4px;
}

.welcome-section p {
    font-size: 12px;
    line-height: 1.45;
}

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

.form-group label {
    font-size: 12px;
    margin-bottom: 5px;
}

.input-wrapper,
.password-wrapper {
    height: 46px;
    border-radius: 11px;
    padding-left: 12px;
    padding-right: 12px;
}

.input-wrapper input,
.country-code {
    font-size: 14px;
}

.password-wrapper input {
    font-size: 14px;
    letter-spacing: 1.5px;
}

.input-icon {
    font-size: 16px;
    margin-right: 8px;
}

.eye-button {
    font-size: 17px;
    padding: 4px;
}

.login-options {
    margin: 0 2px 12px;
}

.remember-me {
    font-size: 12px;
    gap: 7px;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
}

.remember-me input:checked + .custom-checkbox::after {
    font-size: 13px;
    left: 2px;
    top: -2px;
}

.error-message {
    min-height: 40px;
    padding: 7px 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-size: 11px;
    gap: 8px;
}

.error-icon {
    width: 21px;
    height: 21px;
    font-size: 12px;
}

.sign-in-button {
    height: 46px;
    border-radius: 11px;
    font-size: 15px;
    gap: 11px;
}

.arrow {
    font-size: 21px;
}

.footer {
    margin-top: 12px;
    font-size: 9px;
    line-height: 1.4;
}

.footer p {
    margin-bottom: 2px;
}

/* Override the larger legacy mobile dimensions. */
@media (max-width: 700px) {
    .login-page {
        align-items: center;
        padding: 10px 14px;
    }

    .login-container {
        max-width: 440px;
        width: 100%;
        padding: 19px 25px 14px;
    }

    .brand-section {
        margin-bottom: 13px;
    }

    .erms-logo {
        width: 54px;
        height: 54px;
        margin-bottom: 7px;
        font-size: 20px;
    }

    .brand-section h1 {
        font-size: 23px;
    }

    .welcome-section {
        margin-bottom: 13px;
    }

    .welcome-section h2 {
        font-size: 23px;
    }

    .welcome-section p {
        font-size: 12px;
    }

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

    .input-wrapper,
    .password-wrapper {
        height: 45px;
    }

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

/* Short screens: tighten the vertical rhythm further. */
@media (max-height: 720px) {
    .login-page {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .login-container {
        padding-top: 14px;
        padding-bottom: 11px;
    }

    .brand-section {
        margin-bottom: 9px;
    }

    .erms-logo {
        width: 46px;
        height: 46px;
        margin-bottom: 4px;
        border-radius: 13px;
        font-size: 18px;
    }

    .brand-section h1 {
        font-size: 21px;
    }

    .welcome-section {
        margin-bottom: 9px;
    }

    .welcome-section h2 {
        font-size: 21px;
    }

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

    .login-options {
        margin-bottom: 8px;
    }

    .footer {
        margin-top: 8px;
    }
}
