/**
 * 电商管家 - 登录 / 注册页面样式
 */

/* 密码输入框容器 */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
    padding-right: 44px !important;
}

.toggle-pwd {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 6px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toggle-pwd:hover {
    opacity: 1;
}

/* 其他登录方式分割线 */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0 16px;
    color: #bbb;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

.auth-divider span {
    padding: 0 12px;
    white-space: nowrap;
}

/* 其他登录方式按钮 */
.alt-login {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-alt {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.btn-alt:hover {
    border-color: #667eea;
    background: #f0f2ff;
    color: #667eea;
}

.alt-icon {
    font-size: 20px;
}

/* 底部链接 */
.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.link-register {
    color: #4A7FE0;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.link-register:hover {
    color: #3366CC;
    text-decoration: underline;
}

/* 短信验证行 */
.sms-row {
    display: flex;
    gap: 10px;
}

.sms-row input {
    flex: 1;
}

.btn-sms {
    white-space: nowrap;
    padding: 12px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
    min-width: 110px;
}

.btn-sms:hover:not(:disabled) {
    background: #5a6fd6;
}

.btn-sms:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sms-hint {
    display: block;
    margin-top: 6px;
    color: #f0a020;
    font-size: 12px;
}

/* 选填标记 */
.optional {
    color: #bbb;
    font-weight: normal;
}

/* 注册页面更宽 */
.register-container {
    max-width: 440px;
}

/* auth-form 覆盖 login-form 样式 */
.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
}

.auth-form input:disabled {
    background: #f5f5f5;
    color: #aaa;
}
