/* =========================================================
   RESET
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================================================
   BACKGROUND
========================================================= */
html, body {
    height: 100%;
}

body {
    background: url('../img/backgrounds/mainbgsmg.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Dark overlay */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 0;
    }

/* =========================================================
   LOGIN WRAPPER
========================================================= */
.login-form {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
}

    /* =========================================================
   CARD
========================================================= */
    .login-form .card {
        width: 420px;
        max-width: 92vw;
        background: rgba(255,255,255,0.96);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-radius: 26px;
        padding: 2rem;
        box-shadow: 0 25px 60px rgba(0,0,0,.35);
    }

    /* =========================================================
   LOGO
========================================================= */
    .login-form .text-center img {
        max-width: 160px;
        height: auto;
        display: block;
        margin: 0 auto 10px;
    }

    /* =========================================================
   WELCOME
========================================================= */
    .login-form h3 {
        text-align: center;
        font-size: 1.7rem;
        font-weight: 700;
        color: #065f46;
        margin-bottom: 1.5rem;
        transition: opacity 0.35s ease, height 0.35s ease, margin 0.35s ease;
    }
    
    .login-form h3.hide {
        opacity: 0;
        height: 0;
        margin: 0;
        overflow: hidden;
    }

    /* =========================================================
   FORM
========================================================= */
    .login-form .form-group {
        margin-bottom: 1rem;
    }

    /* =========================================================
   SELECT
========================================================= */
    .login-form select {
        width: 100%;
        height: 52px;
        border-radius: 12px;
        border: 2px solid #e5e7eb;
        padding: 0 44px 0 16px;
        font-size: .95rem;
        font-weight: 600;
        color: #1f2937;
        appearance: none;
        background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%2310b981' d='M10 14L4 8h12z'/%3E%3C/svg%3E") no-repeat right 14px center;
    }

    /* =========================================================
   PHONE
========================================================= */
    .login-form .input-group {
        display: flex;
        width: 100%;
    }

    .login-form .input-group-text {
        width: 80px;
        background: #10b981;
        color: white;
        font-weight: 700;
        border-radius: 12px 0 0 12px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-form .input-group .form-control {
        flex: 1;
        height: 52px;
        border: 2px solid #e5e7eb;
        border-left: none;
        border-radius: 0 12px 12px 0;
        padding: 0 14px;
        font-weight: 600;
    }
    
    .login-form .input-group .form-control[readonly] {
        background-color: #f3f4f6;
        cursor: not-allowed;
    }

    /* =========================================================
   BUTTONS
========================================================= */
    .login-form .btn {
        width: 100%;
        height: 52px;
        border-radius: 14px;
        border: none;
        font-weight: 700;
    }

#js-send-otp,
#js-submit {
    background: linear-gradient(135deg,#10b981,#059669);
    color: white;
}

#js-back-to-step1 {
    background: white;
    border: 2px solid #10b981;
    color: #10b981;
}

/* =========================================================
   STEP SYSTEM
========================================================= */
#step1 {
    display: block;
    opacity: 1;
    transform: translateX(0);
    transition: all .35s ease;
}

#step2 {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: all .35s ease;
}

#step2.show {
    display: block !important;
    opacity: 1;
    transform: translateX(0);
}

/* Step1 readonly state - fields visible but disabled */
#step1.readonly {
    opacity: 0.7;
    pointer-events: none;
}

#step1.readonly select,
#step1.readonly input {
    background-color: #f3f4f6 !important;
    cursor: not-allowed !important;
    opacity: 1;
}

#step1.readonly .input-group-text {
    background-color: #d1d5db !important;
    cursor: not-allowed !important;
}

#step1.readonly button {
    opacity: 0.5;
    cursor: not-allowed !important;
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 576px) {
    .login-form .card {
        padding: 1.5rem;
        border-radius: 18px;
    }
}
