﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
    width: 100%;
    height: 100vh;
}

/* 主容器 - 背景图 1920*1080 唯美自然风格 */
.auth-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
/*    background-image: url('https://picsum.photos/id/104/1920/1080');*/
    background-image: url('../../image/demo.jpg'); /* 高质量唯美山湖风景 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 登录/注册卡片靠右 */
    padding: 0 8% 0 0;
}
    /* 半透明柔光层，增加质感 */
    .auth-wrapper::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: brightness(0.96);
        pointer-events: none;
    }

/* 卡片通用样式 (登录 & 注册) */
.auth-card {
    position: relative;
    z-index: 10;
    width: 460px;
    max-width: 90%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-radius: 48px;
    padding: 48px 40px 52px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    animation: fadeSlide 0.6s ease-out;
}
/* keyframes fadeSlide { */
/*     from { opacity: 0; transform: translateX(30px); } */
/*     to { opacity: 1; transform: translateX(0); } */
/* } */
/* /* 响应式: 小屏幕居中 */ */
/* media (max-width: 700px) { */
/*     .auth-wrapper { justify-content: center; padding: 0 5%; } */
/*     .auth-card { width: 90%; padding: 36px 28px; } */
/* } */
.card-header {
    text-align: left;
    margin-bottom: 32px;
}

.card-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e2f41;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.card-header p {
    color: #5a6e7c;
    font-size: 0.9rem;
    border-left: 3px solid #8aaec0;
    padding-left: 12px;
    margin-top: 6px;
}

/* 表单项 */
.input-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .input-group label {
        font-size: 0.8rem;
        font-weight: 600;
        color: #2c4c6c;
        margin-left: 6px;
    }

.input-field {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #dce5ec;
    border-radius: 34px;
    transition: 0.2s;
    outline: none;
    font-weight: 500;
    color: #1f2e3c;
}

    .input-field:focus {
        border-color: #7fa1bc;
        background: white;
        box-shadow: 0 0 0 3px rgba(127, 161, 188, 0.2);
    }

/* 验证码行 */
.captcha-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

    .captcha-row .input-field {
        flex: 1;
    }

.captcha-box {
    background: #eef3fc;
    font-family: 'Courier New', 'Monaco', monospace;
    font-weight: bold;
    font-size: 1.35rem;
    letter-spacing: 6px;
    text-align: center;
    padding: 12px 16px;
    border-radius: 40px;
    cursor: pointer;
    border: 1px solid #cbdae6;
    color: #2c4f6e;
    min-width: 120px;
    user-select: none;
    transition: 0.1s;
}

    .captcha-box:active {
        transform: scale(0.97);
    }

/* 按钮 */
.action-btn {
    background: linear-gradient(105deg, #2f6b47, #42855e);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 44px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin: 16px 0 20px;
    box-shadow: 0 8px 18px rgba(35, 85, 55, 0.2);
    transition: 0.2s;
}

    .action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 22px rgba(35, 85, 55, 0.3);
    }

/* 辅助链接区 */
.extra-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

    .extra-links a {
        color: #557c99;
        text-decoration: none;
        transition: color 0.2s;
    }

        .extra-links a:hover {
            color: #2a6b47;
            text-decoration: underline;
        }

/* 提示消息 */
.message-area {
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 40px;
    font-size: 0.8rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.05);
    color: #b1624b;
    transition: 0.2s;
}

.success-tip {
    background: rgba(72, 187, 120, 0.15);
    color: #2e6b47;
}

/* 右下角唯美装饰 */
.decor-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 5;
    font-size: 0.8rem;
    color: rgba(255, 255, 240, 0.85);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    padding: 6px 14px;
    border-radius: 40px;
    pointer-events: none;
}

/* 注册卡片微调 */
.register-card {
    animation: fadeSlide 0.6s ease-out;
}

