/* style.css - 恢复外边框，其余保持无光晕、居中、透明玻璃效果 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #050510;
    color: #ffffff;
}

/* 3D 画布容器 */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 卡片容器：flex 居中（水平+垂直） */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.auth-card {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 400px;
    background: transparent;          /* 完全透明 */
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.35); /* 恢复外边框 */
    border-radius: 40px;
    padding: 2px;
    box-shadow: none;
}

.card-inner {
    background: transparent;
    border-radius: 38px;
    padding: 30px 24px;
}

/* 标签切换区 - 无底部横线，激活下划线无光晕 */
.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 0;
}

.tab {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.3rem;
    font-weight: 600;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s ease;
    text-align: center;
    letter-spacing: 1px;
    position: relative;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: background 0.2s;
}

.tab.active {
    color: #ffffff;
    text-shadow: none;
}

.tab.active::after {
    background: linear-gradient(90deg, #5800ff, #00d7ff);
    box-shadow: none;
}

/* 表单容器 */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.auth-form.active {
    display: flex;
}

/* 输入框：透明背景 + 彩色边框（无光晕） */
.input-group {
    width: 100%;
}

.input-group input {
    width: 100%;
    background: transparent;
    border: 1px solid #0096ff;
    border-radius: 40px;
    padding: 14px 20px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: none;
}

.input-group input:focus {
    border-color: #5800ff;
    box-shadow: none;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

/* 按钮：渐变背景（无阴影/光晕） */
.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #5800ff, #0096ff);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 14px 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    margin-top: 10px;
    box-shadow: none;
}

.auth-btn:hover {
    transform: scale(1.02);
    box-shadow: none;
}

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

.auth-btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* 额外链接（无光晕） */
.extra-links {
    text-align: center;
    margin-top: 10px;
}

.extra-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 1px solid transparent;
    text-shadow: none;
}

.extra-links a:hover {
    color: #00d7ff;
    border-bottom-color: #00d7ff;
    text-shadow: none;
}

/* 弹窗（无光晕） */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 2rem;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: none;
}

#modalText {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: none;
}

.modal-btn {
    padding: 0.7rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: none;
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 移动端适配（居中自动生效，仅调整内边距） */
@media (max-width: 480px) {
    .auth-card {
        max-width: 95%;
        border-radius: 32px;
    }
    .card-inner {
        padding: 20px 16px;
    }
    .tab {
        font-size: 1.1rem;
    }
    .input-group input {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    .auth-btn {
        padding: 12px 0;
        font-size: 1rem;
    }
    .modal-content {
        padding: 1.5rem;
    }
    #modalText {
        font-size: 1rem;
    }
}
