* {
    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: center;
    justify-content: center;
    color: #333;
}

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

/* ========== LOGO ========== */
.logo-container {
    width: 150px;
    height: 150px;
    background: #ffffff;
    border-radius: 14px;
    margin: 0 auto 42px;
    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: 14px;
}

.form-group input {
    width: 100%;
    height: 48px;                    /* thoda chhota original ke hisab se */
    background: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 24px;
    padding: 0 16px 0 48px;
    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: #616161;
    font-size: 13.5px;
}

/* ========== 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: 48px;                    /* original jaisa size */
    background: #2E7D32;             /* darker green (original jaisa) */
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-size: 16.5px;
    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.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 340px;
    border-radius: 14px;
    padding: 24px 20px 22px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-box h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    padding-right: 28px;
}

.modal-box .desc {
    font-size: 13.5px;
    color: #666;
    margin-bottom: 3px;
    line-height: 1.4;
}

.modal-box .otp-info {
    font-size: 13.5px;
    color: #444;
    margin-bottom: 16px;
}

.modal-box .otp-info strong {
    color: #222;
}

.otp-field {
    width: 100%;
    height: 46px;
    border: 1px solid #E0E0E0;
    border-radius: 11px;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    margin-bottom: 8px;
}

.otp-field:focus {
    border-color: #2E7D32;
}

.resend-row {
    text-align: right;
    margin-bottom: 16px;
}

.resend-row a {
    color: #1976D2;
    font-size: 13.5px;
    text-decoration: none;
}

.btn-confirm {
    width: 100%;
    height: 46px;
    background: #1976D2;
    color: #fff;
    border: none;
    border-radius: 23px;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
}

.btn-confirm:hover {
    background: #1565C0;
}

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