* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #F2F5F9;
    color: #333;
    -webkit-tap-highlight-color: transparent;
}
.page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 28px 32px;
    max-width: 400px;
    margin: 0 auto;
}
.logo-wrap {
    width: 148px;
    height: 148px;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 44px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    background: #fff;
}
.logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.form { width: 100%; }

/* Phone / Password - exact pill fields */
.field {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 30px;
    height: 50px;
    padding: 0 20px;
    margin-bottom: 14px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.field svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: #8B95A5;
    fill: none;
    stroke-width: 1.7;
    margin-right: 12px;
}
.field input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #333;
    height: 100%;
    font-weight: 400;
}
.field input::placeholder {
    color: #A8B0BC;
    font-weight: 400;
}

/* Register | Remember Me */
.row-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 6px 20px;
    font-size: 14px;
}
.row-links a {
    color: #1BA85A;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 400;
}

/* Green circular checkbox */
.remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1BA85A;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}
.remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1BA85A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.check::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}
.remember input:not(:checked) + .check {
    background: transparent;
    border: 2px solid #1BA85A;
}
.remember input:not(:checked) + .check::after {
    display: none;
}

/* Agree User Privacy Agreement */
.agree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 2px 20px;
    font-size: 14px;
    color: #1BA85A;
    line-height: 1.4;
}
.agree-row a {
    color: #1BA85A;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Sign In button */
.btn-sign {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 28px;
    background: #1BA85A;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.2px;
}
.btn-sign:active { opacity: .9; }
.btn-sign:disabled { opacity: .65; }

/* Forget Password */
.forget {
    display: block;
    text-align: center;
    margin-top: 36px;
    color: #1BA85A;
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.version {
    position: fixed;
    right: 18px;
    bottom: 14px;
    font-size: 12px;
    color: #B0B8C4;
}

/* OTP Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 340px;
    padding: 22px 20px 20px;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.modal h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
    padding-right: 28px;
}
.modal .close-x {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}
.otp-info { font-size: 13px; color: #666; margin-bottom: 16px; }
.otp-row {
    display: flex;
    align-items: center;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 0 10px 0 14px;
    height: 48px;
    margin-bottom: 14px;
}
.otp-row input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    letter-spacing: 3px;
    min-width: 0;
}
.otp-send {
    border: none;
    background: #1BA85A;
    color: #fff;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}
.btn-verify {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: #1BA85A;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
