/* login.css - 鐧诲綍椤甸潰涓撶敤鏍峰紡 */

/* 鐧诲綍椤甸潰鍏ㄥ眬鏍峰紡 */
.login-page {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    color: #6a11cb;
    font-size: 48px;
    margin-bottom: 10px;
}

.logo-text {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

/* 琛ㄥ崟鏍峰紡 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.input-with-icon input:focus {
    border-color: #6a11cb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

/* 鐧诲綍鎸夐挳 */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.2);
}

.login-btn:active {
    transform: translateY(0);
}

/* 閿欒鎻愮ず */
.error-message {
    background-color: #ffeaea;
    color: #ff3333;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
    border-left: 4px solid #ff3333;
}

.error-message i {
    margin-right: 8px;
}

/* 璁颁綇鎴戝拰蹇樿瀵嗙爜 */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
    accent-color: #6a11cb;
}

.remember-me label {
    color: #555;
    cursor: pointer;
}

.forgot-password {
    color: #6a11cb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #2575fc;
}

/* 椤佃剼鏂囨湰 */
.footer-text {
    text-align: center;
    margin-top: 30px;
    color: #777;
    font-size: 14px;
}

/* 鍝嶅簲寮忚璁� */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 25px;
        margin: 0 15px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .login-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .logo-icon {
        font-size: 40px;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .forgot-password {
        align-self: flex-end;
    }
}

/* 娣诲姞鍔犺浇鍔ㄧ敾 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6a11cb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}
/* 寮圭獥鏍峰紡 */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            background-color: white;
            border-radius: 10px;
            padding: 30px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            text-align: center;
        }
        
        .modal-icon {
            font-size: 48px;
            margin-bottom: 15px;
        }
        
        .error-icon {
            color: #ff3333;
        }
        
        .warning-icon {
            color: #ff9900;
        }
        
        .success-icon {
            color: #28a745;
        }
        
        .modal-title {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #333;
        }
        
        .modal-message {
            font-size: 16px;
            color: #666;
            margin-bottom: 20px;
            line-height: 1.5;
        }
        
        .modal-button {
            background-color: #6a11cb;
            color: white;
            border: none;
            border-radius: 5px;
            padding: 10px 30px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .modal-button:hover {
            background-color: #5a0db5;
        }
        /* 鍦� login.css 涓坊鍔犱互涓嬫牱寮� */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideIn 0.3s ease-in-out;
    transform-origin: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}