/**
 * 登录模态框样式
 */

/* 模态框基础样式 */
#loginModal .modal-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    border: none;
    overflow: hidden;
    border-radius: 15px;
}

/* 背景动画元素 */
#loginModal .modal-bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.3;
}

#loginModal .bg-circle-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 50%;
    filter: blur(80px);
    top: -150px;
    right: -150px;
}

#loginModal .bg-circle-2 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #fa709a 0%, #fee140 100%);
    border-radius: 50%;
    filter: blur(60px);
    bottom: -100px;
    left: -100px;
}

/* 模态框头部 */
#loginModal .modal-header {
    border: 0;
    position: relative;
    z-index: 1;
    padding: 20px 20px 10px;
}

#loginModal .modal-title {
    font-weight: bold;
    text-align: center;
    width: 100%;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #11998e, #38ef7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#loginModal .close {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 10;
    text-shadow: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

#loginModal .close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* 模态框内容 */
#loginModal .modal-body {
    padding: 0 20px 20px;
    position: relative;
    z-index: 1;
}

/* 登录标签页样式 */
#loginTab {
    border: 0;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

#loginTab .nav-item {
    margin: 0 10px;
}

#loginTab .nav-link {
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    color: #888;
    font-weight: 500;
}

#loginTab .nav-link.active {
    color: #11998e;
    background: rgba(56, 239, 125, 0.1);
}

/* 导航指示器 */
#loginTab .nav-indicator {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, #11998e, #38ef7d);
    bottom: 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* 标签内容区域 - 固定高度 */
#loginTabContent {
    min-height: 300px;
}

/* 二维码登录 */
.qrcode-container {
    display: inline-block;
    position: relative;
    margin-bottom: 15px;
}

.qrcode-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed rgba(56, 239, 125, 0.5);
    border-radius: 15px;
    animation: rotate 10s linear infinite;
}

.scan-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38ef7d, transparent);
    width: 100%;
    top: 50%;
    left: 0;
    animation: scanMove 2s ease-in-out infinite;
}

/* 表单样式 */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-control {
    padding-left: 40px;
    border-radius: 30px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 45px;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(56, 239, 125, 0.25);
}

.login-form .btn {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    border: none;
    border-radius: 30px;
    color: white;
    height: 45px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.4);
    transition: all 0.3s ease;
}

.login-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(56, 239, 125, 0.5);
}

/* 第三方登录 */
.other-login {
    margin-top: 20px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.divider div {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
}

/* 链接悬停效果 */
.hover-effect {
    text-decoration: none;
    position: relative;
}

.hover-effect span {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #11998e, #38ef7d);
    transition: width 0.3s ease;
}

.hover-effect:hover span {
    width: 100%;
}

/* 动画关键帧 */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes scanMove {
    0%, 100% { top: 20%; opacity: 0; }
    50% { top: 80%; opacity: 1; }
}

/* 黑暗模式适配 */
.io-black-mode #loginModal .modal-content {
    background: linear-gradient(135deg, #222 0%, #333 100%);
    color: #e1e1e1;
}

.io-black-mode #loginModal .modal-title {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.io-black-mode #loginModal .close {
    color: #aaa;
}

.io-black-mode #loginModal .close:hover {
    color: #fff;
}

.io-black-mode #loginTab .nav-link {
    color: #aaa;
}

.io-black-mode #loginTab .nav-link.active {
    color: #38ef7d;
    background: rgba(56, 239, 125, 0.15);
}

.io-black-mode .login-form .form-control {
    background-color: #444;
    color: #e1e1e1;
    border: 1px solid #555;
}

.io-black-mode .login-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(56, 239, 125, 0.25);
}

.io-black-mode .text-muted {
    color: #aaa !important;
}

.io-black-mode .divider div {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.io-black-mode .custom-control-label::before {
    background-color: #444;
    border-color: #555;
}

.io-black-mode .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #38ef7d;
    border-color: #38ef7d;
}