.login-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    z-index: 2000;
    margin: 0 15px;
}

.login-body {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.login-header {
    position: relative;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.login-title {
    font-size: 18px;
    /*font-weight: bold;*/
    color: #333;
    text-align: center;
}

.login-footer {
    text-align: center;
    position: relative;
}

.login-divider {
    width: 2px;
    height: 20px;
    background: #fff;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-close {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 auto 0;
}

.login-close:hover {
    transform: rotate(90deg);
    background: #f56c6c;
    color: #fff;
}

.login-close .layui-icon {
    font-size: 16px;
}

.login-content {
    padding: 30px;
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.form-item {
    margin-bottom: 20px;
}

.form-item input {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-item input:focus {
    border-color: #D81A12;
    outline: none;
}

.verify-btn {
    width: 120px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #D81A12;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: none;
}

.verify-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.login-btn-red {
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #D81A12;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: none;
    margin-top: 20px;
}

.login-btn-red:hover, .verify-btn:hover {
    background: #D3605B;
}

.login-type {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    gap: 10px;
}

.login-type-item {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: #f5f5f5;
    cursor: pointer;
    color: #666;
}

.login-type-item.active {
    background: #D81A12;
    color: #fff;
}

.qrcode-wrapper {
    text-align: center;
    padding: 20px 0;
}

.qrcode{
    position: relative;
    display: inline-block;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgb(0 0 0 / 0.05);
    border-width: 1px;
    border-style: solid;
    border-color: #e5e7eb;
    border-radius: 0.75rem;
}

.qrcode-tips {
    margin-top: 20px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

.text-neutral {
    color: rgb(102 112 133 / 0.7);
}

.qr-image{
    width: 12rem;
    height: 12rem;
    padding: 1rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.text-red-500 {
    color: rgb(239 68 68);
}

.qr-overlay{
    background-color: rgb(0 0 0 / 0.5);
    border-radius: 0.375rem;
    justify-content: center;
    align-items: center;
    display: flex;
    inset: 0px;
    position: absolute;
}

.qr-refresh{
    border: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.qr-refresh .text-3xl{
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.qr-check{
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.qr-check .qr-check-fa{
    border-radius: 50%;
    background-color: rgb(255 255 255 / 0.9);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    font-size: 1.875rem;
    color: rgb(34,197,94);
}

.hidden{
    display: none;
}

/* 遮罩层样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
}

/* 移动端适配 */
@media screen and (max-width: 480px) {
    .login-modal {
        width: 90%;
        margin: 0 auto;
    }

    .login-content {
        padding: 20px 15px;
    }

    .verify-btn {
        width: 100px;
        font-size: 13px;
    }

    .qrcode-wrapper #qrcode img {
        width: 180px !important;
        height: 180px !important;
    }
}

.agreement-tips {
    margin-top: 15px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.agreement-tips a {
    color: #D81A12;
    text-decoration: none;
}

.agreement-tips a:hover {
    text-decoration: underline;
} 