/* ============================================
   CenterPHP 认证页面样式（登录/注册/找回密码等）
   ============================================ */

/* Alpine.js x-cloak */
[x-cloak] {
    display: none !important;
}

/* 页面基础 */
.auth-page {
    min-height: 100vh;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* 认证卡片容器 */
.auth-container {
    width: 100%;
    max-width: 960px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
}

/* 左侧品牌区域 */
.auth-brand {
    width: 50%;
    background: linear-gradient(135deg, #1a8677 0%, #23a894 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.auth-brand::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
}

.auth-logo {
    margin-bottom: 32px;
}

.auth-logo-image {
    height: 64px;
    width: auto;
    margin-bottom: 12px;
}

.auth-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.auth-brand-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-brand-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.auth-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.auth-feature:last-child {
    margin-bottom: 0;
}

.auth-feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-feature-icon i {
    font-size: 12px;
}

/* 右侧表单区域 */
.auth-form-section {
    width: 50%;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    margin-bottom: 32px;
    text-align: center;
}

.auth-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e2b3c;
    margin-bottom: 8px;
}

.auth-form-subtitle {
    font-size: 14px;
    color: #6b7280;
}

/* 表单元素 */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1e2b3c;
    margin-bottom: 8px;
}

.form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    font-size: 16px;
    color: #1e2b3c;
    transition: all 0.2s;
    background: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: #23a894;
    box-shadow: 0 0 0 3px rgba(35, 168, 148, 0.1);
    background: white;
}

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

.form-input-with-icon {
    padding-right: 44px;
}

.form-input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    transition: color 0.2s;
}

.form-input-icon:hover {
    color: #23a894;
}

/* 表单输入组（邮箱+发送按钮） */
.form-input-group {
    display: flex;
    gap: 10px;
}

.form-input-group .form-input {
    flex: 1;
}

.send-code-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #e8f7f5;
    border: 1px solid #d1f0eb;
    border-radius: 3px;
    color: #23a894;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 110px;
}

.send-code-btn:hover:not(:disabled) {
    background: #d1f0eb;
    color: #1a8677;
}

.send-code-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.send-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
}

.send-code-btn:disabled:hover {
    background: #f3f4f6;
}

.form-link {
    display: inline-block;
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.form-link:hover {
    color: #23a894;
}

/* 表单选项（记住我、忘记密码） */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 2px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
    user-select: none;
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #23a894;
    border-radius: 4px;
}

.checkbox-text {
    font-size: 14px;
    color: #6b7280;
}

/* 优化忘记密码链接样式 */
.form-options .form-link {
    font-size: 14px;
    color: #23a894;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.form-options .form-link:hover {
    color: #1a8677;
    background: rgba(35, 168, 148, 0.08);
}

/* 按钮 */
.auth-btn {
    width: 100%;
    padding: 14px;
    background: #23a894;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.auth-btn:hover {
    background: #1a8677;
}

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

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-btn:disabled:hover {
    background: #23a894;
}

/* 底部链接 */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

.auth-footer a {
    color: #23a894;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #1a8677;
}


/* ============================================
   错误页面样式
   ============================================ */

/* 单栏布局容器 */
.auth-container-single {
    max-width: 600px;
}

.auth-container-single .auth-form-section {
    width: 100%;
}

.error-content {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #fef3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 36px;
}

.error-icon-primary {
    background: #e8f7f5;
    color: #23a894;
}

.error-icon-danger {
    background: #fee2e2;
    color: #ef4444;
}

.error-code {
    font-size: 72px;
    font-weight: 700;
    color: #1e2b3c;
    margin: 0 0 16px;
    line-height: 1;
}

.error-code-primary {
    color: #23a894;
}

.error-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e2b3c;
    margin: 0 0 12px;
}

.error-title-primary {
    color: #23a894;
}

.error-message {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.error-btn-primary {
    background: #23a894;
    color: white;
}

.error-btn-primary:hover {
    background: #1a8677;
}

.error-btn-outline {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.error-btn-outline:hover {
    border-color: #23a894;
    color: #23a894;
}

.error-debug {
    margin-top: 32px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: left;
}

.error-debug h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1e2b3c;
    margin: 0 0 12px;
}

.error-debug pre {
    font-size: 12px;
    color: #ef4444;
    margin: 0 0 12px;
    padding: 12px;
    background: white;
    border-radius: 4px;
    overflow-x: auto;
}

.error-debug p {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0;
}
/* 响应式 - 平板设备 */
@media (max-width: 1024px) {
    .auth-container {
        max-width: 800px;
    }
    
    .auth-brand {
        padding: 36px;
    }
    
    .auth-form-section {
        padding: 36px;
    }
}

/* 响应式 - 移动设备 */
@media (max-width: 768px) {
    .auth-page {
        align-items: flex-start;
        padding: 40px 16px 20px;
    }
    
    .auth-container {
        flex-direction: column;
        border-radius: 6px;
    }
    
    .auth-brand {
        width: 100%;
        padding: 32px 24px;
        display: none;
    }
    
    .auth-logo-image {
        height: 48px;
    }
    
    .auth-logo-text {
        font-size: 20px;
    }
    
    .auth-brand-title {
        font-size: 18px;
    }
    
    .auth-brand-subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .auth-features {
        display: flex;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .auth-feature {
        margin-bottom: 0;
    }
    
    .auth-form-section {
        width: 100%;
        padding: 32px 24px;
    }
    
    .auth-form-title {
        font-size: 20px;
    }
}

/* 响应式 - 小屏设备 */
@media (max-width: 480px) {
    .auth-brand {
        padding: 24px 20px;
        display: none;
    }
    
    .auth-form-section {
        padding: 24px 20px;
    }
    
    .auth-features {
        flex-direction: column;
        align-items: center;
    }
}