/* 全局字体和背景 */
body {
    font-family: 'Inter', sans-serif;
    color: #212529; /* 深色文本 */
    overflow-x: hidden; /* 防止水平滚动条 */
}

/* 玄学主题背景渐变 */
.yiliuyao-bg-gradient {
    background: linear-gradient(to bottom right, #EDECE5, #DCD9D0, #C9C6BF); /* 柔和的大地色系渐变 */
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #E0E0D8; /* 浅米色 */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #8B7C6C; /* 古铜色 */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7A6F62; /* 深古铜色 */
}

/* 统一的悬停提升效果 */
.transform-hover-lift {
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.transform-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 认证主容器样式 */
.yiliuyao-auth-container {
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(90, 80, 70, 0.1); /* 更沉稳的阴影 */
    max-width: 480px;
    position: relative;
    z-index: 10;
    min-height: 60vh;
}

/* 顶部标题文字颜色 */
.text-yiliuyao-light {
    color: #B4A69A; /* 浅棕色 */
}

.text-yiliuyao-dark {
    color: #5A4B40; /* 深棕色，更具厚重感 */
    letter-spacing: 0.15em; /* 略微增加字间距 */
    font-size: 3.5rem; /* 稍微放大主标题 */
}

/* 注册/登录切换按钮样式 */
.yiliuyao-toggle-btn {
    border: none;
    background-color: transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
}

.yiliuyao-toggle-btn.active {
    color: #5A4B40; /* 激活颜色 */
    font-weight: 600;
}

.yiliuyao-toggle-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background-color: #5A4B40; /* 下划线颜色 */
    border-radius: 1px;
    transition: width 0.3s ease;
}

/* 表单卡片背景 */
.yiliuyao-auth-card {
    background-color: rgba(255, 255, 255, 0.08); /* 增加一点透明度 */
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* 兼容 Safari */
    transition: all 0.3s ease-in-out;
}

/* 自定义提示框样式 */
.custom-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
    z-index: 1056; /* 比 Bootstrap 的 modal (1055) 更高 */
    display: none; /* 默认隐藏 */
    opacity: 0;
    transition: opacity 0.5s ease-in-out, top 0.5s ease-in-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.custom-alert.show {
    display: block;
    opacity: 1;
    top: 50px;
}

.custom-alert.success {
    background-color: #28a745; /* 绿色背景表示成功 */
}

.custom-alert.error {
    background-color: #dc3545; /* 红色背景表示错误 */
}


/* 输入框样式 */
.yiliuyao-input-group .form-control {
    background-color: #FCFBF8; /* 更淡的背景，干净 */
    border: 1px solid #EAE5DB; /* 浅边框 */
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.yiliuyao-input-group .form-control:focus {
    background-color: #fff;
    border-color: #B4A69A; /* 聚焦边框颜色 */
    box-shadow: 0 0 0 0.25rem rgba(180, 166, 154, 0.25);
}

/* 获取验证码按钮 */
.yiliuyao-btn-code {
    border-color: #8B7C6C; /* 古铜色边框 */
    color: #8B7C6C; /* 古铜色文字 */
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.yiliuyao-btn-code:hover {
    background-color: #8B7C6C;
    color: #fff;
}

.yiliuyao-btn-code:disabled {
    background-color: #F0EADF !important;
    border-color: #F0EADF !important;
    color: #A0A0A0 !important;
    cursor: not-allowed;
}

/* 提交按钮的渐变背景 */
.yiliuyao-btn-submit {
    background: linear-gradient(to right, #B4A69A, #8B7C6C); /* 柔和的渐变 */
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(90, 80, 70, 0.3);
}

.yiliuyao-btn-submit:hover {
    background: linear-gradient(to right, #A39689, #7A6F62); /* 悬停渐变 */
    transform: scale(1.01);
    box-shadow: 0 6px 15px rgba(90, 80, 70, 0.4);
}

.yiliuyao-btn-submit:active {
    transform: scale(0.98);
}

/* Tab 导航样式调整 */
.yiliuyao-login-tab-nav .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    background-color: transparent;
}

.yiliuyao-login-tab-nav .nav-link.active {
    color: #5A4B40; /* 激活文字颜色 */
    font-weight: 600;
    background-color: transparent;
}

.yiliuyao-login-tab-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: #5A4B40; /* 激活下划线颜色 */
    border-radius: 1px;
    transition: width 0.3s ease;
}

/* 协议链接颜色 */
.text-yiliuyao-link {
    color: #8B7C6C; /* 链接颜色 */
    text-decoration: underline;
}
.text-yiliuyao-link:hover {
    color: #7A6F62;
}