* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #3A3AD4;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}
.page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 72px 28px 40px;
    max-width: 400px;
    margin: 0 auto;
}
.logo-wrap {
    width: 110px;
    height: 110px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.form { width: 100%; }

.field {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 28px;
    height: 52px;
    padding: 0 18px;
    margin-bottom: 14px;
    border: none;
}
.field .prefix {
    color: #333;
    font-size: 15px;
    font-weight: 500;
    margin-right: 8px;
    flex-shrink: 0;
}
.field input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #333;
    height: 100%;
    min-width: 0;
}
.field input::placeholder { color: #B0B0B0; }

.otp-field {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 28px;
    height: 52px;
    padding: 0 6px 0 18px;
    margin-bottom: 14px;
}
.otp-field input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #333;
    height: 100%;
    min-width: 0;
}
.otp-field input::placeholder { color: #B0B0B0; }
.btn-get-otp {
    border: none;
    background: transparent;
    color: #3A3AD4;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.row-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 4px 22px;
    font-size: 14px;
}
.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}
.remember input { display: none; }
.check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #fff;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.remember input:checked + .check {
    background: #fff;
}
.remember input:checked + .check::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #3A3AD4;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -1px;
}
.link-otp {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 14px;
}
.link-pass {
    display: block;
    text-align: right;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 14px;
    margin: 4px 4px 22px;
}

.btn-login {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 28px;
    background: #1A1A3E;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
}
.btn-login:active { opacity: .9; }
.btn-login:disabled { opacity: .65; }

.row-bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 36px;
    padding: 0 4px;
}
.row-bottom a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}
