﻿/* CSS Document */
/*
编写者：享健丽科技
时间：2025年9月11日
*/

/* 登录框样式 */
.login-container {
    display: none;
    /*background: transparent;*/
    background: rgba(10,10,10,0.5);
    border-radius: 20px;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width:100%;
    height:100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    user-select: none;
}

.login-container.active{
    display: flex;
}

.login-main {
    background: white;
    width:800px;
    height: 520px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    /*animation: modalFadeIn 0.3s ease;*/
    
    /* 居中 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}
/*
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}*/

.close-modal {
    position: absolute;
    top: 1px;
    right: 20px;
    font-size: 36px;
    font-weight: lighter;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #ffcc00;
}

.login-left {
    flex: 0.7;
    background: linear-gradient(135deg, #4a90e2 0%, #2b6cb0 100%);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.login-right {
    flex: 1;
    padding: 10px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qr-container {
    margin-bottom: 40px;
}

.qr-code {
    width: 250px;
    height: 250px;
    background: transparent;
    border-radius: 14px;
    padding: 15px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);*/
}

.qr-code img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
    opacity: 0.9;
}

.qr-text {
    font-size: 20px;
    font-weight: 500;
    margin-top: 20px;
    line-height: 1.5;
    user-select: none;
}

.login-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c5282;
    text-align: center;
    user-select: none;
}

.login-subtitle {
    font-size: 17px;
    color: #718096;
    margin-bottom: 40px;
    text-align: center;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
}

.phone-input {
    display: flex;
}

.phone-prefix {
    background: #edf2f7;
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 12px 0 0 12px;
    font-weight: 500;
    color: #4a5568;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 0 12px 12px 0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.15);
    outline: none;
}

.input-with-button {
    display: flex;
}

.input-with-button input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.get-code-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 0 22px;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 15px;
}

.get-code-btn:hover:not(.disabled) {
    background: #3a7bc8;
}

.get-code-btn.disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

/* 滑块验证码样式 */

.slider-container {
    background: #edf2f7;
    height: 50px;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.slider-track {
    height: 100%;
    width: 100%;
    background: #e6fffa;
    border-radius: 28px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #319795;
    font-weight: 500;
    font-size: 15px;
    user-select: none;
    transition: all 0.3s ease;
}

.slider-thumb {
    height: 50px;
    width: 50px;
    background: #4a90e2;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 3px 8px rgba(66, 153, 225, 0.4);
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-thumb i {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.slider-thumb:active {
    cursor: grabbing;
}

.slider-thumb:active i {
    transform: scale(1.1);
}

.submit-btn {
    width: 100%;
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.25);
}

.submit-btn:hover:not(.disabled) {
    background: #3a7bc8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.35);
}

.submit-btn.disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-footer {
    text-align: center;
    margin-top: 35px;
    color: #718096;
    font-size: 14px;
    user-select: none;
}

.login-footer a {
    color: #4a90e2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        min-height: auto;
    }
    
    .login-left {
        padding: 40px 30px;
    }
    
    .login-right {
        padding: 40px 30px;
    }
    
    .qr-code {
        width: 180px;
        height: 180px;
    }
    
}

/* 消息提示样式 */
.message-toast {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.message-success {
    background: #38a169;
}

.message-error {
    background: #e53e3e;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
