/* 
江嵘智通信息科技有限公司官网
用户认证系统样式文件
*/

/* 认证容器 */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

/* 认证背景 */
.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 动态粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(45, 198, 83, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(2n) {
    background: rgba(25, 116, 210, 0.6);
    animation-delay: -2s;
}

.particle:nth-child(3n) {
    background: rgba(255, 255, 255, 0.3);
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
    }
}

/* AI脑部动画 */
.ai-brain {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    opacity: 0.1;
}

.brain-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #2dc653;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.brain-node:nth-child(1) {
    top: 20px;
    left: 50px;
}

.brain-node:nth-child(2) {
    top: 80px;
    left: 120px;
    animation-delay: -0.5s;
}

.brain-node:nth-child(3) {
    top: 140px;
    left: 30px;
    animation-delay: -1s;
}

.brain-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, #2dc653, transparent);
    animation: data-flow 3s ease-in-out infinite;
}

.brain-connection:nth-child(4) {
    top: 24px;
    left: 58px;
    width: 62px;
    transform: rotate(25deg);
}

.brain-connection:nth-child(5) {
    top: 84px;
    left: 38px;
    width: 82px;
    transform: rotate(-35deg);
    animation-delay: -1s;
}

.brain-connection:nth-child(6) {
    top: 124px;
    left: 90px;
    width: 30px;
    transform: rotate(45deg);
    animation-delay: -2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes data-flow {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
    100% {
        opacity: 0;
        transform: scaleX(0);
    }
}

/* 认证内容 */
.auth-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

/* 返回主页按钮 */
.back-to-home {
    position: absolute;
    top: -60px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-to-home:hover {
    color: #2dc653;
    transform: translateX(-5px);
}

.back-to-home i {
    font-size: 16px;
}

/* 认证头部 */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.company-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2dc653, #1974d2);
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(45, 198, 83, 0.3);
}

.company-logo i {
    font-size: 36px;
    color: white;
}

.auth-header h1 {
    font-size: 24px;
    color: white;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 16px;
}

/* 认证表单容器 */
.auth-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 认证标签页 */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.auth-tab.active {
    color: white;
    background: linear-gradient(135deg, #2dc653, #1974d2);
    box-shadow: 0 4px 15px rgba(45, 198, 83, 0.3);
}

/* 认证表单 */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* 表单行 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group label i {
    color: #2dc653;
    width: 16px;
}

/* 输入框 */
.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #2dc653;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(45, 198, 83, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 密码输入框 */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #2dc653;
    background: rgba(45, 198, 83, 0.1);
}

/* 邮箱验证码输入框 */
.verification-group {
    margin-bottom: 20px;
}

.verification-input {
    display: flex;
    gap: 10px;
}

.verification-input input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    letter-spacing: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.verification-input input:focus {
    outline: none;
    border-color: #2dc653;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(45, 198, 83, 0.1);
}

.verification-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0;
}

.send-code-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 120px;
}

.send-code-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.send-code-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    transform: none;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

/* 复选框容器 */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 28px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    background: rgba(255, 255, 255, 0.12);
}

.checkbox-container input:checked ~ .checkmark {
    background: linear-gradient(135deg, #2dc653, #1974d2);
    border-color: #2dc653;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* 链接 */
.forgot-password,
.terms-link,
.privacy-link {
    color: #2dc653;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.forgot-password:hover,
.terms-link:hover,
.privacy-link:hover {
    color: #1974d2;
    text-decoration: underline;
}

/* 认证按钮 */
.auth-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.auth-btn.primary {
    background: linear-gradient(135deg, #2dc653, #1974d2);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 198, 83, 0.3);
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 198, 83, 0.4);
}

.auth-btn.primary:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.auth-btn i {
    font-size: 16px;
}

/* 认证功能 */
.auth-features {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-align: center;
}

.feature-item i {
    font-size: 20px;
    color: #2dc653;
}

/* 消息提示 */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    padding: 16px 20px;
    border-left: 4px solid #2dc653;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 300px;
}

.message-toast.show {
    transform: translateX(0);
}

.message-toast.success {
    border-left-color: #2dc653;
}

.message-toast.error {
    border-left-color: #ff4757;
}

.message-toast.warning {
    border-left-color: #ffa502;
}

.message-toast.info {
    border-left-color: #1974d2;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 18px;
}

.message-toast.success .toast-icon:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #2dc653;
}

.message-toast.error .toast-icon:before {
    content: "\f00d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ff4757;
}

.message-toast.warning .toast-icon:before {
    content: "\f071";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ffa502;
}

.message-toast.info .toast-icon:before {
    content: "\f05a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #1974d2;
}

.toast-message {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    flex-direction: column;
    gap: 20px;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #2dc653;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #1974d2;
    animation-delay: -0.3s;
}

.spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: rgba(255, 255, 255, 0.5);
    animation-delay: -0.6s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-content {
        max-width: 90%;
        padding: 15px;
    }
    
    .auth-form-container {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .auth-features {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .feature-item {
        flex: 1;
        min-width: calc(50% - 8px);
    }
    
    .back-to-home {
        position: static;
        margin-bottom: 20px;
        justify-content: center;
    }
    
    .ai-brain {
        display: none;
    }
    
    .message-toast {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .message-toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .auth-header h1 {
        font-size: 20px;
    }
    
    .company-logo {
        width: 60px;
        height: 60px;
    }
    
    .company-logo i {
        font-size: 28px;
    }
    
    .auth-tab {
        padding: 10px 15px;
        font-size: 13px;
    }
}
