/* CSS变量已移至 common/variables.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(135deg, var(--santander-red) 0%, var(--dark-red) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 20px;
}

/* 装饰性光圈 */
body::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -80px;
    left: -80px;
}

body::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: 50px;
    right: -50px;
}

/* 玻璃拟态卡片 */
.glass-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 40px 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    z-index: 10;
    animation: slideUp 0.6s ease-out;
}

.logo-area {
    text-align: center;
    margin-bottom: 30px;
}

.logo-area .brand {
    font-size: 2.2rem;
    color: var(--santander-red);
    font-weight: 800;
    font-style: italic;
    margin-bottom: 8px;
    display: block;
}

.logo-area span {
    color: #666;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* 登录方式切换标签 */
.login-type-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 3px;
    margin-bottom: 20px;
}

.type-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-radius: 9px;
    transition: all 0.3s;
}

.type-tab.active {
    background: var(--white);
    color: var(--santander-red);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

/* 短信验证码按钮 */
.sms-btn {
    background: var(--santander-red);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    margin-left: 10px;
}

.sms-btn:hover {
    background: var(--dark-red);
}

.sms-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sms-btn.countdown {
    background: #ccc;
    cursor: not-allowed;
}

/* 输入框组合样式调整 */
.input-group {
    position: relative;
}

.input-group.has-button {
    padding-right: 0;
}

.input-group.has-button input {
    padding-right: 10px;
}

/* 切换标签 */
.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 25px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-radius: 11px;
    transition: all 0.3s;
}

.tab.active {
    background: var(--white);
    color: var(--santander-red);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* 输入框 */
.input-group {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.input-group:focus-within {
    border-color: var(--santander-red);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(236, 0, 0, 0.1);
}

.input-group i {
    color: var(--santander-red);
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.input-group input,
.input-group select {
    border: none;
    background: transparent;
    padding: 16px 0;
    width: 100%;
    outline: none;
    font-size: 1rem;
    color: #333;
}

.input-group input::placeholder {
    color: #999;
}

.country-select {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.phone-hint {
    font-size: 0.75rem;
    color: #999;
    margin-top: -12px;
    margin-bottom: 16px;
    margin-left: 48px;
    display: block;
}

/* 按钮 */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--santander-red) 0%, var(--dark-red) 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(236, 0, 0, 0.25);
    transition: all 0.3s;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* 底部链接 */
.footer-links {
    text-align: center;
    margin-top: 25px;
}

.footer-links a {
    color: var(--dark-red);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-links .divider {
    color: #ddd;
    margin: 0 12px;
}

/* 安全提示 */
.security-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.security-tip i {
    color: #28a745;
    font-size: 0.9rem;
}

.security-tip span {
    color: #999;
    font-size: 0.75rem;
}

/* Toast */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 0.9rem;
    z-index: 3000;
    display: none;
    max-width: 80%;
    text-align: center;
}

.toast.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

