.login-dialog {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
}

.login-box {
    position: relative;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 400px;
    margin: 0 auto;
    margin-top: 20vh;
}

.login-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.login-close:hover {
    transform: rotate(90deg);
}

.login-switch {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #f5e1a7;
}

.login-switch .item {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #888;
    transition: all 0.3s ease;
    position: relative;
}

.login-switch .item.active {
    color: #e6b800;
}

.login-switch .item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e6b800;
}

.login-form {
    display: none;
    animation: fadeOut 0.3s ease;
}

.login-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.input-item input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f5e1a7;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fffdf5;
}

.input-item input:focus {
    outline: none;
    border-color: #e6b800;
    box-shadow: 0 0 0 3px rgba(230, 184, 0, 0.1);
}

.login-submit {
    width: 100%;
    padding: 12px;
    background-color: #e6b800;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin: 15px 0;
}

.login-submit:hover {
    background-color: #d4a700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 184, 0, 0.2);
}

.login-form a {
    color: #e6b800;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
}

.login-form a:hover {
    color: #d4a700;
    text-decoration: underline;
}

.login-form div:last-child {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.login-form input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #e6b800;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}
@media (max-width: 767px) {
    .login-box {
        width: 85%;
    }
}
