:root {
    --primary: #8f6ae2;
    --text-main: #2f2f33;
    --text-muted: #9b9baa;
    --input-bg: #f4f5f8;
    --line-color: #e0e0e8;
}
body.login-mobile-page {
    background: #fff;
}
.login-screen {
    min-height: calc(100vh - 60px);
    padding: calc(32px + env(safe-area-inset-top, 0px)) 24px 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    background: #fff;
}
.logo-mark {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    border: 1px solid #f0f0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
    color: var(--primary);
    font-weight: 600;
}
.form-card {
    width: 100%;
    max-width: 420px;
    margin-top: 10px;
}
.form-field {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-color);
    gap: 12px;
}
.form-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(143, 106, 226, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}
.form-icon i {
    line-height: 1;
}
.form-icon.icon-code {
    background: rgba(143, 106, 226, 0.06);
    color: #b88df0;
}
.form-control.login-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-main);
}
.form-control.login-input:focus {
    outline: none;
    box-shadow: none;
}
.btn-send-code {
    border: none;
    background: transparent;
    color: var(--primary);
    font-weight: 500;
    font-size: 15px;
}
.btn-send-code:disabled {
    color: #c7c5d2;
}
.agreement-text {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}
.agreement-text a {
    color: var(--primary);
    text-decoration: none;
}
.btn-login {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 0;
    margin-top: 18px;
    font-size: 17px;
    color: #fff;
    background: var(--primary);
    opacity: 0.9;
}
.btn-login:active {
    opacity: 1;
}
.guest-mode {
    margin-top: 16px;
    text-align: center;
    color: var(--primary);
    font-size: 15px;
    display: block;
}
.policy-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(16,18,36,0.55);
    z-index: 1000;
    padding: 20px;
}
.policy-modal.active {
    display: flex;
}
.modal-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    overflow: hidden;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid #f0f0f5;
}
.modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: var(--text-muted);
}
.modal-body {
    padding: 18px 22px;
    color: var(--text-main);
    line-height: 1.6;
}
.modal-body p {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-muted);
}
.footer-record {
    margin-top: auto;
    font-size: 12px;
    color: #c2c2cc;
}
@media (max-width: 360px) {
    .login-screen {
        padding: calc(24px + env(safe-area-inset-top, 0px)) 18px 60px;
    }
    .logo-mark {
        width: 100px;
        height: 100px;
        font-size: 46px;
    }
}
