/* ==========================================
   LOGIN PAGE - MOBILE
========================================== */

@media screen and (max-width: 768px) {

    * {
        box-sizing: border-box;
    }

    body.sea-bg {
    padding: 0;

    min-height: 100vh;

    background-size: cover;

    background-position: 20% center;

    background-repeat: no-repeat;
}

    .login-wrapper {
        min-height: 100vh;

        display: flex;

        justify-content: center;

        align-items: center;

        padding: 16px;
    }

    .login-card {
        width: 100%;

        max-width: 380px;

        padding: 24px;

        border-radius: 28px;

        background: rgba(255, 255, 255, 0.92);

        backdrop-filter: blur(12px);

        -webkit-backdrop-filter: blur(12px);
    }

    /* ==========================
       BRAND
    ========================== */

    .brand-section {
        text-align: center;

        margin-bottom: 0;
    }

    .login-brand {
        font-size: 2.7rem;

        font-weight: 800;

        color: #163b76;

        line-height: 1;

        margin-bottom: 8px;
    }

    .tagline {
        font-size: 1rem;

        font-weight: 700;

        color: #1fa84a;

        margin-bottom: 16px;
    }

    /* ==========================
       DIVIDER
    ========================== */

    .divider {
        margin: 16px 0 24px;

        border-top: 1px solid #dddddd;
    }

    .divider::before,
    .divider::after,
    .divider span {
        display: none;
    }

    /* ==========================
       LOGIN TITLE
    ========================== */

    .login-card h2 {
        margin: 0 0 24px;

        text-align: center;

        font-size: 1.8rem;

        font-weight: 700;

        color: #1d2640;
    }

    /* ==========================
       PHONE INPUT
    ========================== */

    .phone-box {
        display: flex;

        align-items: center;

        width: 100%;

        height: 58px;

        border: 1px solid #d4d4d4;

        border-radius: 18px;

        overflow: hidden;

        background: #ffffff;
    }

    .country-code {
        flex: 0 0 80px;

        display: flex;

        justify-content: center;

        align-items: center;

        height: 100%;

        font-size: 1.3rem;

        font-weight: 700;

        border-right: 1px solid #e5e5e5;
    }

    #phone {
        flex: 1;

        width: 100%;

        height: 100%;

        border: none;

        outline: none;

        padding: 0 18px;

        margin: 0;

        font-size: 16px;

        line-height: normal;

        background: transparent;

        -webkit-appearance: none;

        appearance: none;
    }

    #phone::placeholder {
        font-size: 16px;

        color: #8a8a8a;

        opacity: 1;
    }

    /* ==========================
       BUTTONS
    ========================== */

    .login-card button {
        width: 100%;

        height: 52px;

        margin-top: 16px;

        border-radius: 16px;

        font-size: 1.1rem;

        font-weight: 700;
    }

    /* ==========================
       OTP
    ========================== */

    .otp-box {
        margin-top: 16px;
    }

    .otp-inputs {
        display: flex;

        justify-content: center;

        gap: 10px;

        margin-top: 16px;
    }

    .otp-input {
        width: 52px;

        height: 52px;

        font-size: 1.3rem;

        text-align: center;

        border-radius: 12px;
    }

    /* ==========================
       MESSAGES
    ========================== */

    .msg,
    .error-text,
    .success-text {
        text-align: center;

        margin-top: 16px;
    }
}

/* ==========================================
   SMALL PHONES
========================================== */

@media screen and (max-width: 480px) {

    .login-wrapper {
        padding: 12px;
    }

    .login-card {
        padding: 20px;
    }

    .login-brand {
        font-size: 2.4rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .login-card h2 {
        font-size: 1.6rem;
    }

    .country-code {
        flex-basis: 72px;
    }

    .phone-box {
        height: 54px;
    }

    .otp-input {
        width: 46px;

        height: 46px;
    }
}