* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #F0F4F8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #333;
    padding-top: 36px;
}

.wrapper {
    width: 100%;
    max-width: 400px;
    padding: 12px 28px 70px;
    position: relative;
}

/* ========== LOGO ========== */
.logo-container {
    width: 150px;
    height: 150px;
    background: #ffffff;
    border-radius: 14px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.logo-container img {
    width: 120px;
    height: auto;
    display: block;
}

/* ========== INPUT FIELDS ========== */
.form-group {
    position: relative;
    margin-bottom: 12px;
}

.form-group input {
    width: 100%;
    height: 44px;
    background: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 22px;
    padding: 0 16px 0 46px;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input::placeholder {
    color: #9E9E9E;
    font-weight: 400;
}

.form-group input:focus {
    border-color: #2E7D32;
}

.form-group .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #757575;
    pointer-events: none;
}

/* ========== OPTIONS ROW ========== */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 2px 20px;
}

.register-link {
    color: #2E7D32;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #2E7D32;
    cursor: pointer;
}

.remember-me span {
    color: #2E7D32;
    font-size: 13.5px;
}

.custom-check.small {
    width: 16px;
    height: 16px;
}

.custom-check.small svg {
    width: 10px;
    height: 10px;
}

/* ========== PRIVACY ========== */
.privacy-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 24px;
    font-size: 13.5px;
    color: #616161;
}

.privacy-row input[type="checkbox"] {
    display: none;
}

.custom-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #4CAF50;
    background: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.custom-check svg {
    width: 11px;
    height: 11px;
    fill: #fff;
}

.privacy-row a {
    color: #2E7D32;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ========== SIGN IN BUTTON ========== */
.btn-signin {
    width: 100%;
    height: 46px;
    background: #2E7D32;
    color: #ffffff;
    border: none;
    border-radius: 23px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-signin:hover {
    background: #1B5E20;
}

.btn-signin:active {
    transform: scale(0.98);
}

/* ========== FORGET PASSWORD ========== */
.forget-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: #2E7D32;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ========== VERSION ========== */
.version {
    position: fixed;
    bottom: 14px;
    right: 18px;
    font-size: 12px;
    color: #9E9E9E;
}

/* ========== OTP MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 360px;
    border-radius: 16px;
    padding: 28px 22px 24px;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #F0F0F0;
    border-radius: 50%;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-close:hover {
    background: #E0E0E0;
}

.modal-box h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-right: 36px;
}

.modal-box .desc {
    font-size: 14px;
    color: #2E7D32;
    margin-bottom: 8px;
    line-height: 1.45;
}

.modal-box .otp-info {
    font-size: 14px;
    color: #2E7D32;
    margin-bottom: 20px;
}

.modal-box .otp-info strong {
    color: #1B5E20;
    font-weight: 600;
}

/* OTP input row with Send button inside */
.otp-input-row {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    background: #fff;
    border: 1.5px solid #C8E6C9;
    border-radius: 28px;
    height: 50px;
    padding: 0 6px 0 16px;
    overflow: hidden;
}

.otp-input-row .otp-icon {
    width: 22px;
    height: 22px;
    color: #9E9E9E;
    flex-shrink: 0;
    margin-right: 10px;
}

.otp-input-row input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
    background: transparent;
    height: 100%;
    min-width: 0;
}

.otp-input-row input::placeholder {
    color: #BDBDBD;
}

.otp-send-btn {
    height: 38px;
    padding: 0 18px;
    background: #2E7D32;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.otp-send-btn:hover {
    background: #1B5E20;
}

.otp-send-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-confirm {
    width: 100%;
    height: 50px;
    background: #2E7D32;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.btn-confirm:hover {
    background: #1B5E20;
}

/* Loading state */
.btn-signin:disabled,
.btn-confirm:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
