:root {
    --primary-gradient: linear-gradient(180deg, #2567E8 0%, #1CE6DA 100%);
    --primary-color: #1D61E7;
    --white: #FFFFFF;
    --grey: #6C7278;
    --headline: #111827;
    --stroke: #EDF1F3;
    --input-bg: #FFFFFF;
    --shadow: 0px 1px 2px rgba(228, 229, 231, 0.24);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
}

.auth-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

h1 {
    color: var(--headline);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.auth-subtitle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    color: var(--grey);
    font-size: 12px;
}

.auth-subtitle a {
    color: #4D81E7;
    font-weight: 600;
    text-decoration: none;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    color: var(--grey);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    background: var(--input-bg);
    box-shadow: var(--shadow);
    font-size: 14px;
    font-weight: 500;
    color: #1A1C1E;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ACB5BB' d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
    background-size: contain;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
}

.remember-me input[type="checkbox"] {
    width: 19px;
    height: 19px;
}

.remember-me label {
    color: var(--grey);
    font-size: 12px;
    margin-bottom: 0;
}

.forgot-password {
    color: #4D81E7;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    height: 48px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%), var(--primary-color);
    border: 1px solid #375DFB;
    border-radius: 10px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 24px;
}

.divider {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--stroke);
}

.divider span {
    padding: 0 16px;
    color: var(--grey);
    font-size: 12px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-social {
    width: 100%;
    height: 48px;
    background: var(--white);
    border: 1px solid #EFF0F6;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1A1C1E;
    cursor: pointer;
    text-decoration: none; /* 添加这行来去除下划线 */
}

.icon-google,
.icon-facebook {
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-google {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23EB4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E");
}

.icon-facebook {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231877F2' d='M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z'/%3E%3C/svg%3E");
}

.wechat-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.btn-social.wechat {
    background-color: #07C160;
    color: white;
}


/* 手机号登录按钮样式 */
.btn-social.phone {
    background-color: #3498db;
    color: white;
}

.btn-social.phone:hover {
    background-color: #2980b9;
}

/* 禁用按钮样式 */
.btn-social.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f0f0f0;
    color: #888;
    border: 1px solid #ddd;
}

.btn-social.disabled:hover {
    background-color: #f0f0f0;
    transform: none;
    box-shadow: none;
}
