/* 基础样式 */
.auth-body {
    min-height: 100vh;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* 返回按钮 */
.auth-back {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: white;
    border-radius: 0.75rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.auth-back i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.auth-back:hover {
    background: #f9fafb;
    color: #111827;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* 在小屏幕上调整样式 */
@media (max-width: 640px) {
    .auth-back {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* 主容器 */
.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Logo */
.auth-logo {
    height: 2rem;
    display: block;
    margin: 0 auto 1.5rem;
}

/* 表单卡片 */
.auth-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

/* 表单组 */
.auth-form-group {
    margin-bottom: 1.25rem;
}

/* 输入组 */
.auth-input-group {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s;
    background: white;
}

.auth-input-group:focus-within {
    border-color: #07c160;
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

/* 输入框图标 */
.auth-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
}

/* 输入框 */
.auth-input {
    width: 100%;
    height: 2.75rem;
    padding: 0 1rem 0 2.75rem;
    border: none;
    background: transparent;
    color: #1f2937;
    font-size: 0.875rem;
}

.auth-input:focus {
    outline: none;
}

.auth-input::placeholder {
    color: #9ca3af;
}

/* 复选框组 */
.auth-checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    user-select: none;
}

.auth-checkbox {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border-radius: 0.25rem;
    border: 1.5px solid #d1d5db;
    appearance: none;
    background: white;
    cursor: pointer;
    position: relative;
}

.auth-checkbox:checked {
    background: #07c160;
    border-color: #07c160;
}

.auth-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.375rem;
    height: 0.375rem;
    background: white;
    border-radius: 1px;
}

.auth-checkbox-label span {
    color: #6b7280;
    font-size: 0.875rem;
}

/* 提交按钮 */
.auth-submit {
    width: 100%;
    height: 2.75rem;
    background: #07c160;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1.5rem;
}

.auth-submit:hover {
    background: #06ad56;
}

/* 链接区域 */
.auth-links {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-links a {
    color: #07c160;
    font-weight: 500;
    text-decoration: none;
    margin-left: 0.25rem;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #06ad56;
}

/* 错误提示 */
.auth-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.375rem;
}

/* 标题区域样式 */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

/* 错误状态的输入框 */
.auth-input-error {
    border-color: #ef4444;
}

.auth-input-error:focus-within {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* 错误提示样式 */
.auth-error {
    display: flex;
    align-items: center;
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0;
}

.auth-error i {
    margin-right: 0.375rem;
    font-size: 0.875rem;
}

/* 输入框验证状态 */
.auth-input:invalid {
    box-shadow: none;
} 