/* 登录、注册、忘记密码页面样式 - xyX主题 */

/* 基础样式 */
html, body {
    background: var(--xyx-bg-gradient) !important;
    background-attachment: fixed !important;
    color: var(--xyx-text-color) !important;
}

.navbar-fixed {
    padding-top: 0;
}

/* 主认证区域 */
.main_auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* ==============================================
   现代化动效
   ============================================== */

/* 入场动画 */
@keyframes authFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 面板毛玻璃效果 + 动效 */
.main_auth .panel {
    background: var(--xyx-glass-bg) !important;
    backdrop-filter: blur(var(--xyx-glass-blur)) !important;
    -webkit-backdrop-filter: blur(var(--xyx-glass-blur)) !important;
    border: 1px solid var(--xyx-glass-border) !important;
    border-radius: var(--xyx-glass-radius) !important;
    box-shadow: var(--xyx-shadow-lg) !important;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: authFadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.main_auth .panel:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

/* 输入框交互动效 */
.main_auth .block {
    animation: authFadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.main_auth .block:nth-child(1) { animation-delay: 0.1s; }
.main_auth .block:nth-child(2) { animation-delay: 0.15s; }
.main_auth .block:nth-child(3) { animation-delay: 0.2s; }
.main_auth .block:nth-child(4) { animation-delay: 0.25s; }
.main_auth .block:nth-child(5) { animation-delay: 0.3s; }
.main_auth .block:nth-child(6) { animation-delay: 0.35s; }

/* 登录标题 */
.login_heading {
    margin-bottom: 30px;
    text-align: center;
}

/* 标题包裹器 - 垂直布局，按钮居中 */
.auth_title_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.auth_title {
    font-size: 24px;
    font-weight: 600;
    color: var(--xyx-text-color) !important;
    margin-bottom: 0;
}


.text-color {
    color: var(--xyx-text-color) !important;
}

/* 输入框组样式 - 无缝连接，消除缝隙 */
.main_auth .input-group {
    margin-bottom: 0;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--xyx-glass-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--xyx-input-bg);
}

.main_auth .input-group .input-group-addon {
    background: transparent !important;
    border: none !important;
    color: var(--xyx-text-color-light) !important;
    transition: var(--xyx-glass-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    margin: 0;
    min-width: 46px;
    height: auto;
}

.main_auth .input-group .form-control {
    background: transparent !important;
    border: none !important;
    color: var(--xyx-text-color) !important;
    transition: var(--xyx-glass-transition);
    height: 44px;
    padding: 10px 12px;
    font-size: 14px;
    flex: 1;
    margin: 0;
    box-shadow: none !important;
}

.main_auth .input-group .form-control::placeholder {
    color: var(--xyx-text-color-muted) !important;
    opacity: 0.8;
}

.main_auth .input-group .form-control:focus {
    outline: none;
    box-shadow: none !important;
}

/* 聚焦时整个input-group边框变色 */
.main_auth .input-group:focus-within {
    border-color: var(--xyx-accent-color);
    box-shadow: 0 0 0 3px var(--xyx-accent-color-alpha);
}

.main_auth .input-group:focus-within .input-group-addon {
    color: var(--xyx-accent-color) !important;
}

/* iconfont图标 - 比例协调 */
.main_auth .input-group-addon i,
.main_auth .input-group-addon .iconfont {
    color: inherit !important;
    font-size: 18px;
    line-height: 1;
}

/* 获取验证码按钮 - 完全重写 */
.main_auth .input-group a.input-group-addon,
.main_auth .input-group .input-group-addon[onclick] {
    background-color: var(--xyx-accent-color) !important;
    color: #fff !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 15px !important;
    white-space: nowrap;
    text-decoration: none;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 90px;
    border: none !important;
    margin: 0 !important;
    border-radius: 0 7px 7px 0 !important;
    height: auto !important;
    line-height: 1.4;
}

.main_auth .input-group a.input-group-addon:hover,
.main_auth .input-group .input-group-addon[onclick]:hover {
    background-color: var(--xyx-accent-color-hover) !important;
    text-decoration: none;
}

/* 验证码图片容器 */
.main_auth .input-group .input-group-addon[style*="padding:0"],
.main_auth .input-group .input-group-addon[style*="padding: 0"] {
    padding: 0 !important;
    min-width: auto;
    background: transparent !important;
}

.main_auth .captcha_img {
    height: 42px;
    border-radius: 0 7px 7px 0;
    display: block;
}

/* 按钮样式 - 统一主题色 */
.btn {
    transition: var(--xyx-glass-transition);
    border-radius: var(--xyx-glass-radius-sm);
}

.btn-info,
.btn-primary,
.btn-danger {
    background: var(--xyx-accent-color) !important;
    border-color: var(--xyx-accent-color) !important;
    color: #ffffff !important;
}

.btn-info:hover,
.btn-primary:hover,
.btn-danger:hover {
    background: var(--xyx-accent-color-hover) !important;
    border-color: var(--xyx-accent-color-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--xyx-accent-color-alpha) !important;
}

/* Tab标签页 */
.nav-tabs {
    border-bottom: 1px solid var(--xyx-glass-border) !important;
}

.nav-tabs > li > a {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--xyx-text-color-light) !important;
    transition: var(--xyx-glass-transition);
}

.nav-tabs > li > a:hover {
    background: var(--xyx-glass-bg-light) !important;
    border-color: var(--xyx-glass-border) !important;
    color: var(--xyx-text-color) !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: var(--xyx-accent-color) !important;
    border-color: var(--xyx-accent-color) !important;
    color: #ffffff !important;
}

/* 链接文字 */
.text-info,
a.text-info {
    color: var(--xyx-accent-color) !important;
}

.text-info:hover,
a.text-info:hover {
    color: var(--xyx-accent-color-hover) !important;
    text-decoration: underline;
}

/* 复选框 */
input[type="checkbox"] {
    accent-color: var(--xyx-accent-color);
}

.block {
    color: var(--xyx-text-color) !important;
}

/* 国家选择下拉框 */
.country-select,
select.form-control {
    background: var(--xyx-dropdown-bg) !important;
    border-color: var(--xyx-glass-border) !important;
    color: var(--xyx-text-color) !important;
}

.country-select option,
select.form-control option {
    background: var(--xyx-dropdown-bg) !important;
    color: var(--xyx-text-color) !important;
}

/* 装饰云朵 */
html::before,
html::after {
    content: "";
    position: fixed;
    z-index: 2;
    bottom: 0;
    width: 1046px;
    height: 178px;
    background-size: 1046px 178px;
    background-repeat: no-repeat;
    opacity: 0.6;
}

html::before {
    background-image: url("{asset_url('@home@index/clouds-light-left.png')}");
    right: 50%;
    padding-right: 320px;
    background-position: left bottom;
}

html::after {
    background-image: url("{asset_url('@home@index/clouds-light-right.png')}");
    left: 50%;
    padding-left: 320px;
    background-position: right bottom;
}

#content {
    z-index: 10;
    position: relative;
}

footer#footer {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 0;
    color: var(--xyx-text-color-muted);
    z-index: 999;
}

/* 第三方登录样式 */
.oauth_title {
    position: relative;
    margin-bottom: 10px;
    margin-top: 20px;
}

.oauth_title span {
    display: block;
    margin: 0 auto;
    width: 120px;
    text-align: center;
    background: var(--xyx-glass-bg);
    color: var(--xyx-text-color-light);
    font-size: 14px;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}

.oauth_title:before {
    content: '';
    width: 100%;
    display: block;
    position: absolute;
    top: 10px;
    border-bottom: 1px solid var(--xyx-glass-border);
    z-index: 0;
}

.oauth_box {
    display: flex;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
}

/* ==============================================
   更多交互动效
   ============================================== */

/* 输入框悬浮效果 */
.main_auth .input-group {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main_auth .input-group:hover {
    border-color: var(--xyx-accent-color-alpha);
}

/* 按钮点击波纹效果 */
.main_auth .btn {
    position: relative;
    overflow: hidden;
}

.main_auth .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.main_auth .btn:active::after {
    width: 300px;
    height: 300px;
}

/* Tab切换动效 */
.main_auth .nav-tabs > li > a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main_auth .nav-tabs > li > a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--xyx-accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main_auth .nav-tabs > li:hover > a::after {
    width: 100%;
}

.main_auth .nav-tabs > li.active > a::after {
    width: 100%;
    background: #fff;
}

/* Tab内容切换动效 */
.main_auth .tab-content > .tab-pane {
    animation: authFadeInUp 0.4s ease;
}

/* 链接悬浮效果 */
.main_auth a.text-info {
    position: relative;
    transition: all 0.3s ease;
}

.main_auth a.text-info::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--xyx-accent-color);
    transition: width 0.3s ease;
}

.main_auth a.text-info:hover::after {
    width: 100%;
}

/* 第三方登录图标动效 */
.main_auth .oauth_item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main_auth .oauth_item:hover {
    transform: translateY(-3px) scale(1.05);
}

.main_auth .oauth_item img {
    transition: all 0.3s ease;
}

.main_auth .oauth_item:hover img {
    filter: brightness(1.1);
}

.oauth_item {
    width: 12%;
    white-space: nowrap;
    text-align: center;
    color: var(--xyx-text-color-muted);
}

.oauth_item span {
    color: var(--xyx-text-color-light);
    font-size: 12px;
}

.oauth_item a {
    display: block;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 5px;
}

.oauth_item img {
    width: 100%;
}

/* 国家选择样式 */
.country-box {
    display: flex;
    flex: 1;
}

.country-box .form-control {
    flex: 1;
}

.country-select {
    max-width: 80px;
    height: 39px;
    padding: 0px;
    font-size: 12px;
    border-left: 0px;
    border-right: 0px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Footer */
footer#footer {
    color: var(--xyx-text-color-muted) !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .main_auth .panel {
        padding: 30px 20px;
    }
    
    .oauth_item {
        width: 20%;
    }
}