* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f7f9fc;
    color: #172033;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.login-container,
.register-container {
    width: 100%;
    background: #fff;
}

.login-header,
.register-header {
    margin-bottom: 30px;
}

.login-header h1,
.register-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 720;
}

.login-header p,
.register-header p {
    color: #667085;
    font-size: 14px;
}

.login-form,
.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 680;
}

.form-group input {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border: 1px solid #d9e1ea;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    font-size: 14px;
}

.phone-row {
    display: flex;
    gap: 10px;
}

.phone-row input {
    flex: 1;
}

.login-button,
.register-button,
.verify-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.verify-btn {
    min-width: 120px;
    padding: 0 16px;
    white-space: nowrap;
}

.login-button:disabled,
.register-button:disabled,
.verify-btn:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d9e1ea;
}

.divider span {
    padding: 0 15px;
    color: #667085;
    font-size: 12px;
}

.register-link,
.login-link,
.form-hint {
    color: #667085;
    font-size: 14px;
}

.form-hint {
    margin-top: 5px;
    font-size: 12px;
}

.register-link a,
.login-link a {
    color: #176b87;
    font-weight: 720;
}

.error-message,
.success-message {
    display: none;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 10px;
    text-align: left;
    font-size: 13px;
}

.error-message {
    background: #fff1f0;
    color: #b42318;
}

.success-message {
    background: #ecfdf3;
    color: #067647;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
    font-style: normal;
    line-height: 1;
}

.icon-video::before { content: ">"; }
.icon-user::before { content: "U"; }
.icon-lock::before { content: "#"; }
.icon-login::before { content: "->"; }

@media (max-width: 640px) {
    body {
        padding: 12px;
    }

    .phone-row {
        flex-direction: column;
    }
}
