.login-modal-overlay,
.register-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.login-modal,
.register-modal {
    position: relative;
    width: 500px;
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    background: none;
    border: none;
}

.close-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-large {
    font-size: 60px;
    margin-bottom: 10px;
}

.login-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.login-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    color: #c62f2f;
    border-bottom-color: #c62f2f;
}

.login-content {
    min-height: 300px;
}

.login-form-container {
    display: block;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    position: relative;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #c62f2f;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.login-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #c62f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-submit-btn:hover {
    background-color: #d43f3f;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.link {
    color: #507daf;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.qrcode-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.qrcode-placeholder {
    text-align: center;
}

.qrcode-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.qrcode-placeholder p {
    color: #666;
    font-size: 14px;
}

.btn-send-code {
    padding: 12px 20px;
    background-color: #507daf;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: 100px;
}

.btn-send-code:hover:not(:disabled) {
    background-color: #3d6a9f;
}

.btn-send-code:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .login-modal,
    .register-modal {
        width: 90%;
        padding: 30px 20px;
    }
}

